Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix queue_depth metric in starlark processor #49

Merged
merged 1 commit into from May 11, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 7 additions & 0 deletions examples/telegraf.conf.d/puppetdb.conf
Expand Up @@ -40,6 +40,13 @@ def apply(metric):

metrics.append(m)

queue_depth = d['servers'][server]['puppetdb']['puppetdb-status']['status']['queue_depth']
m = Metric("puppetdb")
m.time = date
m.tags['url'] = server
m.fields['queue_depth'] = queue_depth
metrics.append(m)

if 'jetty-queuedthreadpool' in d['servers'][server]['puppetdb'].keys():
for k,v in d['servers'][server]['puppetdb']['jetty-queuedthreadpool'].items():
if k not in skip_keys:
Expand Down