-
Notifications
You must be signed in to change notification settings - Fork 88
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 server not working #201
Comments
This a problem for me, too. @mogoman Dit you found a working version? |
No solution yet. Looking at the code it should work, I'll try and track down the problem. |
I tried to debug the problem, too. But it is very bad to use pdb with just little knowledge of python. |
Hey there @rdoering @mogoman, can you try setting the environment variable It seems to be a problem with an imported library when running flask on debug mode. However this seems to happen in prom2teams even in production mode, I'll have a look into this, but this workaround should work for now. In your example it should be something like this:
|
@vicfran Thanks for your workaround, it is working with the env |
#71 # Prerequisites
Description
-m or --enablemetrics or PROM2TEAMS_PROMETHEUS_METRICS=true all appear to have no effect
Steps to Reproduce
v2.5.7
1.
curl localhost:8089/metrics
<title>404 Not Found</title>same for 2.5.6, 2.5.5 and 2.4.0
Expected behavior: [What you expect to happen]
curl to /metrics should produce some data and not 404
Actual behavior: [What actually happens]
receive 404
Reproduces how often: [What percentage of the time does it reproduce?]
100%
Versions
2.5.7, 2.5.6, 2.5.5, 2.4.0 were tested
Additional Information
none
The text was updated successfully, but these errors were encountered: