Skip to content

Support exemplars for single process mode - #669

Merged
csmarchbanks merged 1 commit into
masterfrom
exemplars
Oct 29, 2021
Merged

csmarchbanks merged 1 commit into
masterfrom
exemplars

Conversation

@csmarchbanks

Copy link
Copy Markdown
Member

This PR adds support for exemplars for counters and histograms when instrumenting your code.

@csmarchbanks
csmarchbanks force-pushed the exemplars branch 2 times, most recently from c47b2c8 to e6e5c2d Compare June 17, 2021 04:32
@csmarchbanks
csmarchbanks marked this pull request as ready for review June 17, 2021 04:33
@csmarchbanks csmarchbanks mentioned this pull request Jun 17, 2021
Comment thread prometheus_client/metrics.py Resolved
@csmarchbanks
csmarchbanks force-pushed the exemplars branch 6 times, most recently from 26dcc3b to 1bd82fb Compare June 17, 2021 17:04
@csmarchbanks
csmarchbanks marked this pull request as draft June 17, 2021 17:22
Signed-off-by: Chris Marchbanks <csmarchbanks@gmail.com>
@csmarchbanks
csmarchbanks marked this pull request as ready for review June 22, 2021 20:49
@yacir

yacir commented Sep 13, 2021

Copy link
Copy Markdown

Hi @csmarchbanks @brian-brazil 👋🏽
Any idea about this feature release date please ?

Thx

@csmarchbanks

Copy link
Copy Markdown
Member Author

Hi @yacir, I am testing this out with some teammates soon internally. Unless some concerns come up I plan to merge and release this soon afterward.

@gerboland gerboland left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, I've given this a good test, works fine, output as expected. Code clean too. I'm happy to approve

@csmarchbanks
csmarchbanks merged commit c8f1bd3 into master Oct 29, 2021
@csmarchbanks
csmarchbanks deleted the exemplars branch October 29, 2021 14:28
@ConverJens

Copy link
Copy Markdown

@csmarchbanks @gerboland
Do you support gauges and custom collectors as well?

@csmarchbanks

Copy link
Copy Markdown
Member Author

OpenMetrics does not allow gauges to have exemplars so they are not supported. It looks like custom collectors only have partial support right now, exemplars can only be specified for histograms. It would be good to add support for Counters and GaugeHistograms for custom collectors as well. Would you be willing to open an issue (or PR if you want) for support in custom collectors?

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.

5 participants