-
Notifications
You must be signed in to change notification settings - Fork 1.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
Update prometheus_client #6200
Update prometheus_client #6200
Conversation
Codecov Report
|
1da9668
to
8a8a86f
Compare
openmetrics/tests/conftest.py
Outdated
@@ -35,12 +35,13 @@ def poll_mock(): | |||
g3 = Gauge('metric3', 'memory usage', ['matched_label', 'node', 'timestamp'], registry=registry) | |||
g3.labels(matched_label="foobar", node="host2", timestamp="456").set(float('inf')) | |||
|
|||
data = ensure_unicode(generate_latest(registry)) | |||
data = data.replace("_total", "") |
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.
This implies a breaking change, no?
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.
No, I don't think it does. It implies a breaking change from the prometheus producing metric side that we used in the tests, not in our consumer. Notice that the classes used to generate the data comes from prometheus_client
.
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.
But does that mean users can also produce counter metrics with _total
suffix and it won't work with this integration ?
See: #3700 |
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.
LGMT 👍
2fdfa66
to
d2692ed
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 🔥
This updates prometheus client library to the latest available version, by removing the change in text_fd_to_metric_families which is breaking our compatibility.
d2692ed
to
b59dc79
Compare
36bb890
to
3f4fbd0
Compare
This updates prometheus client library to the latest available version,
by removing the change in text_fd_to_metric_families which is breaking
our compatibility.