8000 Exemplar not working on single process · Issue #893 · prometheus/client_python · GitHub
[go: up one dir, main page]

Skip to content

Exemplar not working on single process #893

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

Closed
nkthanh99 opened this issue Feb 23, 2023 · 3 comments
Closed

Exemplar not working on single process #893

nkthanh99 opened this issue Feb 23, 2023 · 3 comments

Comments

@nkthanh99
Copy link

Currently, I install package from github (master branch) but I can export metrics with exemplar. I only use single process for web server and pass exemplar to counter metric

image

With single process, I started Flask app via gunicorn with "workers = 1"

@csmarchbanks
Copy link
Member

Hello, could I get a couple details around how you are exposing the metrics? E.g. are you manually calling generate_latest? Exemplars will only work if using the openmetrics exposition, which will either need to be selected via content negotiation or manually called from your code.

@csmarchbanks
Copy link
Member

Note that this may also be caused by #861 if you are not running 0.16.

@csmarchbanks
Copy link
Member

I am going to close this as additional information has been added to the README and I have not heard from the author since opening the issue.

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

No branches or pull requests

2 participants
0