-
Notifications
You must be signed in to change notification settings - Fork 622
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
Metrics rename #346
Metrics rename #346
Conversation
remove all calls to metrics.Counter and instead inline using the prometheus/promauto package
that's used to give more control and therefore create unique registers per tests avoiding the "duplicate metrics collector registration attempted" panic message see prometheus/client_golang#716 (comment)
couple things: 1 - semantics have changed, ie the metrics are initialized to 0 even if we can't ever generate metrics data so think in a dashboard a 0 value vs simply nothing showing up 2 - some of the metrics generated were dynamic, for example, based on files in a directory that has been hardcoded
Codecov Report
@@ Coverage Diff @@
## main #346 +/- ##
==========================================
- Coverage 54.49% 54.40% -0.09%
==========================================
Files 102 102
Lines 5020 4988 -32
==========================================
- Hits 2735 2713 -22
+ Misses 2035 2025 -10
Partials 250 250
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, merging
Refers to #332
Since this is a breaking change, I decided to clean up as much as possible.
pyroscope_
prefix._storage
as they refer to the "storage" subsystemHere's the result of the promlinter tool: