-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Take Prometheus MIME-type header into account #7371
Take Prometheus MIME-type header into account #7371
Conversation
afc8073
to
d5a7e59
Compare
damned unstable tests |
This will avoid adding format=prometheus in request and to parse more easily metrics using Prometheus. This commit follows hashicorp#6514 as the PR has been closed and extends it by accepting old Prometheus mime-type.
d5a7e59
to
c80b956
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your work! Just found the PR from vault: hashicorp/vault#7958. Your solution is a little different from that. Is there a reason for that?
Fixed typo to true Co-Authored-By: Hans Hasselberg <me@hans.io>
@i0rek Yes, I do support old mime-type of Prometheus (before standardization of openmetrics) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Thank you!
This will avoid adding format=prometheus in request and to parse more easily metrics using Prometheus. This commit follows #6514 as the PR has been closed and extends it by accepting old Prometheus mime-type.
This will avoid adding format=prometheus in request and to parse more easily metrics using Prometheus.
This commit follows #6514 and extends it by accepting old Prometheus mime-type.