-
Notifications
You must be signed in to change notification settings - Fork 23
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
Add plugin input filter output metrics #101
Add plugin input filter output metrics #101
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #101 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 12 12
Lines 434 480 +46
=========================================
+ Hits 434 480 +46
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
Yeah, don't merge this yet, it breaks when pipeline actions (e.g.
Update: Resolved by adding plugin-id label |
e89f0c6
to
bfd1f39
Compare
@kuskoman I'm pretty much ready to publish this PR, once I'm done testing its outputs in Grafana. If you'd like to give it a review, you're welcome to. |
At first glance it looks really nice, but you need to give me some time to checkout the code locally and play with it. |
Of course, no rush hence this WIP PR being still a draft. I have a comprehensive Grafana dashboard now using these metrics that's in the "cleanup" stages. |
I'll need to rebase this as well. |
fb81b51
to
eb1ea4e
Compare
Ok, this looks good on my end, so I'll publish the PR! Btw, I reduced the number of metrics quite a bit, as the plugin type (input, output, filter, codec) should really just be a label. |
Resolves #87. Adds metrics for pipeline plugins (inputs, outputs, filters, codecs)
These metrics have four labels:
mutate
)input
)drop_spam_80pct
or last 8-chars of autogenerated UUID)To accommodate this, I changed
NewDescWithHelpAndLabel()
'slabel
parameter to be variadic, and pluralized both the param and the function name, hence:NewDescWithHelpAndLabels(name string, help string, labels ...string)
.New metrics:
What these look like: