use of org.apache.hadoop.metrics2.MetricsRecordBuilder in project accumulo by apache.
the class Metrics2TabletServerMinCMetrics method getMetrics.
@Override
public void getMetrics(MetricsCollector collector, boolean all) {
MetricsRecordBuilder builder = collector.addRecord(RECORD).setContext(CONTEXT);
registry.snapshot(builder, all);
}
use of org.apache.hadoop.metrics2.MetricsRecordBuilder in project hive by apache.
the class LlapTaskSchedulerMetrics method getMetrics.
@Override
public void getMetrics(MetricsCollector collector, boolean b) {
MetricsRecordBuilder rb = collector.addRecord(SchedulerMetrics).setContext("scheduler").tag(ProcessName, "DAGAppMaster").tag(SessionId, sessionId);
if (dagId != null) {
rb.tag(MsInfo.Context, dagId);
}
getTaskSchedulerStats(rb);
}
use of org.apache.hadoop.metrics2.MetricsRecordBuilder in project hive by apache.
the class LlapDaemonCacheMetrics method getMetrics.
@Override
public void getMetrics(MetricsCollector collector, boolean b) {
MetricsRecordBuilder rb = collector.addRecord(CacheMetrics).setContext("cache").tag(ProcessName, MetricsUtils.METRICS_PROCESS_NAME).tag(SessionId, sessionId);
getCacheStats(rb);
}
use of org.apache.hadoop.metrics2.MetricsRecordBuilder in project hive by apache.
the class LlapDaemonJvmMetrics method getMetrics.
@Override
public void getMetrics(MetricsCollector collector, boolean b) {
MetricsRecordBuilder rb = collector.addRecord(LlapDaemonJVMMetrics).setContext("jvm").tag(ProcessName, MetricsUtils.METRICS_PROCESS_NAME + "(PID: " + daemonPid + ")").tag(SessionId, sessionId);
getJvmMetrics(rb);
}
use of org.apache.hadoop.metrics2.MetricsRecordBuilder in project hbase by apache.
the class MetricsIOSourceImpl method getMetrics.
@Override
public void getMetrics(MetricsCollector metricsCollector, boolean all) {
MetricsRecordBuilder mrb = metricsCollector.addRecord(metricsName);
// wrapper can be null because this function is called inside of init.
if (wrapper != null) {
mrb.addCounter(Interns.info(CHECKSUM_FAILURES_KEY, CHECKSUM_FAILURES_DESC), wrapper.getChecksumFailures());
}
metricsRegistry.snapshot(mrb, all);
}
Aggregations