Refactor analytics collectors.

- Only have one registration class
- Add description fields
- Add automation collector information to /api/v2/config
This commit is contained in:
Bill Nottingham
2020-09-09 17:10:14 -04:00
parent dff7667532
commit 1c4b06fe1e
6 changed files with 87 additions and 66 deletions
+2 -1
View File
@@ -373,8 +373,9 @@ def gather_analytics():
if acquired is False:
logger.debug('Not gathering analytics, another task holds lock')
return
subset = list(all_collectors().keys())
try:
tgz = analytics.gather()
tgz = analytics.gather(subset=subset)
if not tgz:
return
logger.info('gathered analytics: {}'.format(tgz))