-
Notifications
You must be signed in to change notification settings - Fork 16
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
[BUG] Prometheus requires that all meters with the same name have the same set of tag keys. #3
Comments
☝️ Added unit test that reproduces the issue for some TDD. The way I see it there are a couple ways to tackle this.
|
I went with a combo of the last 2 bullet points and have a unit/functional test that works, need to point an actual Prometheus scrapper to it and see if it is happy. Prometheus itself might get mad at the scrape, I'm not sure... ¯\_(ツ)_/¯. |
According to micrometer-metrics/micrometer#877 (comment), the IAE error that is being thrown is to protect against an error that I am no longer seeing on the Prometheus Java client. That's not to say the author didn't mean that its to protect against an error on the actual scrapper instead. Or maybe this limitation is fixed in Prometheus now? |
This comment/block of code makes me think that the scrapper might not handle the fix I have implemented in the plugin. I am still not sure if this is for older scrappers or current.
|
Wrote some functional and integration tests that seem to prove that this fix is fine. |
The text was updated successfully, but these errors were encountered: