You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by GitBox <gi...@apache.org> on 2020/04/29 15:29:59 UTC

[GitHub] [nifi] mattyb149 commented on a change in pull request #4240: NIFI-7408 - added percent used metrics for connections

mattyb149 commented on a change in pull request #4240:
URL: https://github.com/apache/nifi/pull/4240#discussion_r417407238



##########
File path: nifi-nar-bundles/nifi-extension-utils/nifi-prometheus-utils/src/main/java/org/apache/nifi/prometheus/util/PrometheusMetricsUtil.java
##########
@@ -364,6 +370,10 @@ public static CollectorRegistry createConnectionStatusAnalyticsMetrics(Connectio
         return connectionAnalyticsMetricsRegistry.getRegistry();
     }
 
+    private static int getUtilization(final double used, final double total) {

Review comment:
       The Gauge value is a `double` so this will get turned back into a double, should we just keep the calculation as a double instead?




----------------------------------------------------------------
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