-
Notifications
You must be signed in to change notification settings - Fork 887
Prometheus metrics endpoint returns 500 instead of metrics #11451
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
Comments
@janLo do you have |
Thank you, I'll try that on monday. One thing to note: I updated from 2.5.0. |
@spikecurtis are you working on this, or do you want me to take this up? |
Fixes #11451 A refactor of the Agent API passes metrics as protobufs, which include pointers to label name/value pairs. The aggregator tested for sameness by doing a shallow compare of label values, which for different stats reports would compare unequal because the pointers would be different. This fix does a deep compare. While testing I also noted that we neglect to compare template names. This is unlikely to have caused any issue in practice, since the combination of username/workspace is unique, but in the context of comparing metric labels we should do the comparison. If a user creates a workspace, deletes it, then recreates from a different template, we could in principle have reported incorrect stats for the old template.
Thank you, looking forward to the release! |
released in 2.7.0 https://github.com/coder/coder/releases/tag/v2.7.0 |
Our instances stopped to respond to metric requests:
It seem to have happened with the upgrade to 2.6.0.
The text was updated successfully, but these errors were encountered: