[ https://issues.apache.org/jira/browse/GOBBLIN-1639?focusedWorklogId=771562&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-771562 ]
ASF GitHub Bot logged work on GOBBLIN-1639: ------------------------------------------- Author: ASF GitHub Bot Created on: 17/May/22 20:20 Start Date: 17/May/22 20:20 Worklog Time Spent: 10m Work Description: Will-Lo commented on code in PR #3500: URL: https://github.com/apache/gobblin/pull/3500#discussion_r875228696 ########## gobblin-runtime/src/test/java/org/apache/gobblin/runtime/metrics/GobblinJobMetricReporterTest.java: ########## @@ -0,0 +1,122 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.gobblin.runtime.metrics; + +import com.codahale.metrics.Metric; +import java.io.FileReader; +import java.io.IOException; +import java.util.Map; +import java.util.Properties; + +import org.apache.gobblin.configuration.ConfigurationKeys; +import org.apache.gobblin.metastore.FsStateStore; +import org.apache.gobblin.metastore.StateStore; +import org.apache.gobblin.metastore.testing.ITestMetastoreDatabase; +import org.apache.gobblin.metastore.testing.TestMetastoreDatabaseFactory; +import org.apache.gobblin.runtime.JobContext; +import org.apache.gobblin.runtime.JobLauncherTestHelper; +import org.apache.gobblin.runtime.JobState; +import org.apache.gobblin.runtime.local.LocalJobLauncher; +import org.junit.Assert; +import org.testng.annotations.AfterClass; +import org.testng.annotations.BeforeClass; +import org.testng.annotations.Test; + + + +/** + * Unit test for {@link LocalJobLauncher}. + * + * @author Yinan Li + */ +@Test(groups = { "gobblin.runtime.local" }) +public class GobblinJobMetricReporterTest { Review Comment: Oh I'll update this thanks, I used the same testing interface but it's focused around testing the metric naming conventions rather than the job launcher logic itself. Not sure if it makes sense for me to make different tests for each metric reporter class, maybe I should do that instead? Issue Time Tracking ------------------- Worklog Id: (was: 771562) Time Spent: 2h 40m (was: 2.5h) > Remove adhoc job metric emission and also provide a more uniform way of > emitting per pipeline metrics on Gobblin > ---------------------------------------------------------------------------------------------------------------- > > Key: GOBBLIN-1639 > URL: https://issues.apache.org/jira/browse/GOBBLIN-1639 > Project: Apache Gobblin > Issue Type: Task > Components: gobblin-service > Reporter: William Lo > Assignee: Abhishek Tiwari > Priority: Major > Time Spent: 2h 40m > Remaining Estimate: 0h > > Gobblin flows still emit certain metrics by default. > 1. GaaS flows which are adhoc should not be emitting metrics outside of GTE > 2. Per pipeline metrics are too disorganized right now, need to unify them > and this can be the first step. -- This message was sent by Atlassian Jira (v8.20.7#820007)