[ https://issues.apache.org/jira/browse/GOBBLIN-1051?focusedWorklogId=389269&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-389269 ]
ASF GitHub Bot logged work on GOBBLIN-1051: ------------------------------------------- Author: ASF GitHub Bot Created on: 19/Feb/20 01:59 Start Date: 19/Feb/20 01:59 Worklog Time Spent: 10m Work Description: linweihs commented on pull request #2891: [GOBBLIN-1051] Emit Helix Leader Metrics URL: https://github.com/apache/incubator-gobblin/pull/2891#discussion_r381038920 ########## File path: gobblin-service/src/main/java/org/apache/gobblin/service/modules/core/GobblinServiceManager.java ########## @@ -214,6 +223,14 @@ public GobblinServiceManager(String serviceName, String serviceId, Config config this.isGitConfigMonitorEnabled = false; } + // Initialize Helix leader guage + helixLeaderGauges = Optional.of(new HelixLeaderState()); + String helixLeaderStateGaugeName = + MetricRegistry.name(MetricReportUtils.GOBBLIN_SERVICE_METRICS_PREFIX, ServiceMetricNames.HELIX_LEADER_STATE); + ContextAwareGauge<Integer> gauge = metricContext.newContextAwareGauge(helixLeaderStateGaugeName, () -> helixLeaderGauges.get().state.value); Review comment: updated. ---------------------------------------------------------------- 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: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 389269) Time Spent: 1h 50m (was: 1h 40m) > Emit helix leader metrics to ingraph > ------------------------------------- > > Key: GOBBLIN-1051 > URL: https://issues.apache.org/jira/browse/GOBBLIN-1051 > Project: Apache Gobblin > Issue Type: Task > Reporter: Wei-Hsiang Lin > Priority: Major > Time Spent: 1h 50m > Remaining Estimate: 0h > -- This message was sent by Atlassian Jira (v8.3.4#803005)