[
https://issues.apache.org/jira/browse/GOBBLIN-1505?focusedWorklogId=633946&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-633946
]
ASF GitHub Bot logged work on GOBBLIN-1505:
-------------------------------------------
Author: ASF GitHub Bot
Created on: 05/Aug/21 04:32
Start Date: 05/Aug/21 04:32
Worklog Time Spent: 10m
Work Description: arjun4084346 commented on a change in pull request
#3351:
URL: https://github.com/apache/gobblin/pull/3351#discussion_r683120849
##########
File path:
gobblin-cluster/src/main/java/org/apache/gobblin/cluster/GobblinHelixJobLauncher.java
##########
@@ -205,6 +209,12 @@ protected void runWorkUnits(List<WorkUnit> workUnits)
throws Exception {
this.eventSubmitter.submit(countEventBuilder);
LOGGER.info("Emitting WorkUnitsCreated Count: " +
countEventBuilder.getCount());
+ MetricContext
+ metricContext =
Instrumented.getMetricContext(ConfigUtils.configToState(ConfigFactory.empty()),
getClass());
+ String workUnitCountName =
MetricRegistry.name(this.jobContext.getJobState().getProp(ConfigurationKeys.FLOW_GROUP_KEY),
+
this.jobContext.getJobState().getProp(ConfigurationKeys.FLOW_NAME_KEY),
"workunits");
+ metricContext.newContextAwareGauge(workUnitCountName, () ->
workUnits.size());
Review comment:
You need to register this gauge to the metricContext, right?
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 633946)
Time Spent: 40m (was: 0.5h)
> Add Metric for WorkUnit count per Flow
> --------------------------------------
>
> Key: GOBBLIN-1505
> URL: https://issues.apache.org/jira/browse/GOBBLIN-1505
> Project: Apache Gobblin
> Issue Type: Improvement
> Components: gobblin-core
> Reporter: Urmi Mustafi
> Assignee: Abhishek Tiwari
> Priority: Major
> Time Spent: 40m
> Remaining Estimate: 0h
>
> From a user/platform perspective, we want to see how many workunits are being
> created for each flow. The metric of workunit count will be emitted in the
> form <flowgroup>.<flowname>.workunits
--
This message was sent by Atlassian Jira
(v8.3.4#803005)