List of usage examples for org.apache.hadoop.metrics2.impl MsInfo ProcessName
MsInfo ProcessName
To view the source code for org.apache.hadoop.metrics2.impl MsInfo ProcessName.
Click Source Link
From source file:org.apache.accumulo.master.metrics.fate.Metrics2FateMetrics.java
License:Apache License
public Metrics2FateMetrics(final ServerContext context, MetricsSystem metricsSystem, final long minimumRefreshDelay) { this.context = context; this.minimumRefreshDelay = Math.max(DEFAULT_MIN_REFRESH_DELAY, minimumRefreshDelay); metricValues = new AtomicReference<>(FateMetricValues.updateFromZookeeper(context, null)); this.metricsSystem = metricsSystem; this.registry = new MetricsRegistry(Interns.info(NAME, DESCRIPTION)); this.registry.tag(MsInfo.ProcessName, MetricsSystemHelper.getProcessName()); currentFateOps = registry.newGauge(CUR_FATE_OPS, "Current number of FATE Ops", 0L); zkChildFateOpsTotal = registry.newGauge(TOTAL_FATE_OPS, "Total FATE Ops", 0L); zkConnectionErrorsTotal = registry.newGauge(TOTAL_ZK_CONN_ERRORS, "Total ZK Connection Errors", 0L); }