You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@uniffle.apache.org by "smallzhongfeng (via GitHub)" <gi...@apache.org> on 2023/03/01 02:46:35 UTC

[GitHub] [incubator-uniffle] smallzhongfeng commented on a diff in pull request #672: [#671] Metrics of the number of apps submitted by users

smallzhongfeng commented on code in PR #672:
URL: https://github.com/apache/incubator-uniffle/pull/672#discussion_r1121067413


##########
coordinator/src/main/java/org/apache/uniffle/coordinator/metric/CoordinatorMetrics.java:
##########
@@ -96,6 +98,23 @@ public static void updateDynamicGaugeForRemoteStorage(String storageHost, double
     }
   }
 
+  public static void addDynamicGaugeForUser(String user) {
+    if (!StringUtils.isEmpty(user)) {
+      GAUGE_APP_NUM_TO_USER.computeIfAbsent(
+          user, x -> metricsManager.addGauge(APP_NUM_TO_USER + user));
+      GAUGE_APP_NUM_TO_USER.get(user).inc();

Review Comment:
   Do you mean to merge 105 lines into 104 ?



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

To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org