Skip to content

Support metric help text in multiprocess mode#866

Closed
evgenymarkov wants to merge 2 commits intoprometheus:masterfrom
evgenymarkov:multiprocess-help
Closed

Support metric help text in multiprocess mode#866
evgenymarkov wants to merge 2 commits intoprometheus:masterfrom
evgenymarkov:multiprocess-help

Conversation

@evgenymarkov
Copy link
Contributor

@evgenymarkov evgenymarkov commented Dec 4, 2022

Hello ✋🏻 I ran into a problem - open telemetry collector shows errors because I collect metrics with the same name from two applications - one single-process, the other multi-process:

label:<name:"path_template" value:"/api/rest/v1/auth/me" > label:<name:"project" value:"auth" > counter:<value:890 > has help "Total count of requests by method and path" but should have "Multiprocess metric"

Then I found old issue and I decided to fix it. @butlerx did almost all the work. I added only 1 test.

butlerx and others added 2 commits December 4, 2022 21:15
Issue #211
Add support for storing the metrics help text in the multiprocess map.
The help will come from the first process read, but it should be the
same for all metrics.

Signed-off-by: Cian Butler <butlerx@notthe.cloud>
Signed-off-by: Evgeny Markov <evgenymarkov@yandex.com>
Signed-off-by: Evgeny Markov <evgenymarkov@yandex.com>
@evgenymarkov
Copy link
Contributor Author

See also: #866

@evgenymarkov evgenymarkov marked this pull request as ready for review December 4, 2022 16:20
@evgenymarkov
Copy link
Contributor Author

I'll close my PR because it's exactly the same as #804

@evgenymarkov evgenymarkov deleted the multiprocess-help branch December 4, 2022 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants