-
Notifications
You must be signed in to change notification settings - Fork 400
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
"Application metrics" not being exported after setting ENABLE_METRICS #713
Comments
@davidpellcb do you see any logs that might help identify the issue? or maybe share your full configuration (redacted) so we can try to reproduce? I ran ChartMuseum |
@cbuto did you test against an object store like s3? it works fine if i have local storage but fails for s3 |
ok metrics work fine in my testing on s3.. the issue is if app dies there no cache or state. If you do another push for a chart the metrics come back. |
Did some poking at this. It's not just "chart/version served total" metrics that are delayed. "Requests total" is delayed as well; not showing in /metrics until after the first call is made.
I'm suspicious that this upstream bug is related: zsais/go-gin-prometheus#55 I was hoping that forcing a cache or index refresh would trigger the stats to appear; I ran chartmuseum alternatively with Finally, I'll add, @mzupan already notes a POST will cause the metrics to start appearing. So will a DELETE. This is perhaps easier to trigger:
testing was done with the v0.16.0 docker container on my local machine, but pointed at our s3 bucket. |
Chart version: 3.6.2
We've set ENABLE_METRICS:
...however, the metrics
chartmuseum_charts_served_total
andchartmuseum_chart_versions_served_total
documented here aren't being exported.The "general global metrics" are being exported:
The text was updated successfully, but these errors were encountered: