Skip to content
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

ZOOKEEPER-4287: Upgrade prometheus client library version to 0.10.0 #1688

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

li4wang
Copy link
Contributor

@li4wang li4wang commented Apr 28, 2021

-- Upgrade the prometheus simple-client version from 0.9.0 to 0.10.0, which is the latest。
-- Prometheus switched to OpenMetrics data model in the 0.10.0 release. These means the downstream dashboard/alert may be impacted because

  • all Counter samples now have a _total suffix
  • Counter, Summary, and Histogram metrics now expose a _created sample with when their child was created

Copy link
Contributor

@eolivelli eolivelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for providing this work.

I left a question, PTAL

count[0]++;
int value = ((Number) v).intValue();
switch (k) {
case "cc_total":
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so with this upgrade we are changing the metrics that we are providing ?

can you please explain in the description of the PR and/or in JIRA ?

this may be a significant impact for people who created downstream processing dashboards/alerts

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, Prometheus switched to OpenMetrics data model in 0.10.0 release. These means the following.

  1. all Counter samples now have a _total suffix
  2. Counter, Summary, and Histogram metrics now expose a _created sample with when their child was created

More details can be found in the Prometheus change logs https://github.com/prometheus/client_java/releases

Yes, the downstream processing dashboard/alerts need to make the change accordingly when they upgrade ZK version.

@arshadmohammad
Copy link
Contributor

Please conclude this PR, if this is supposed to be part of 3.7.1 release

@eolivelli
Copy link
Contributor

I think that we can include this change in 3.9.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants