You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@zookeeper.apache.org by GitBox <gi...@apache.org> on 2021/04/29 06:49:04 UTC

[GitHub] [zookeeper] eolivelli commented on a change in pull request #1688: ZOOKEEPER-4287: Upgrade prometheus client library version to 0.10.0

eolivelli commented on a change in pull request #1688:
URL: https://github.com/apache/zookeeper/pull/1688#discussion_r622775675



##########
File path: zookeeper-metrics-providers/zookeeper-prometheus-metrics/src/test/java/org/apache/zookeeper/metrics/prometheus/PrometheusMetricsProviderTest.java
##########
@@ -76,31 +77,51 @@ public void testCounters() throws Exception {
         counter.add(10);
         int[] count = {0};
         provider.dump((k, v) -> {
-            assertEquals("cc", k);
-            assertEquals(10, ((Number) v).intValue());
             count[0]++;
+            int value = ((Number) v).intValue();
+            switch (k) {
+                case "cc_total":

Review comment:
       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




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org