Hi,

Concerning gobblin metrics function, I am encounter a strange issue. I write 
some self-definite metrics using MetricContext object by InstrumentedExtractor 
and InstrumentedDataWriter. Running it at standalone and mapreduce mode, after 
job completed just only standalone have the metrics information in 
gobblin_task_metrics table I don't understand why haven't the metrics under 
mapreduce mode.

Have anyone know where need to care about it?

I use it as follows :

xxxExtractor extends InstrumentedExtractor<xxx, xxx> {
private MetricContext metricContext;

               public xxxExtractor(WorkUnitState state){
               this.metricContext=this.getMetricContext();
}

Private void xxx(){
                              Counter 
counter=metricContext.counter("xx.xxx.xxx");
                              recordsCounter.inc(xxx);
}
}

Thanks,
Zhang Xiuzhu

Reply via email to