public class JMXReporter extends Object implements org.apache.flink.metrics.reporter.MetricReporter
MetricReporter that exports Metrics via JMX.
Largely based on the JmxReporter class of the dropwizard metrics library https://github.com/dropwizard/metrics/blob/master/metrics-core/src/main/java/io/dropwizard/metrics/JmxReporter.java
| Modifier and Type | Class and Description |
|---|---|
static interface |
JMXReporter.JmxCounterMBean
The MBean interface for an exposed counter.
|
static interface |
JMXReporter.JmxGaugeMBean
The MBean interface for an exposed gauge.
|
static interface |
JMXReporter.JmxHistogramMBean
The MBean interface for an exposed histogram.
|
static interface |
JMXReporter.JmxMeterMBean
The MBean interface for an exposed meter.
|
static interface |
JMXReporter.MetricMBean
The common MBean interface for all metrics.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Optional<Integer> |
getPort() |
void |
notifyOfAddedMetric(org.apache.flink.metrics.Metric metric,
String metricName,
org.apache.flink.metrics.MetricGroup group) |
void |
notifyOfRemovedMetric(org.apache.flink.metrics.Metric metric,
String metricName,
org.apache.flink.metrics.MetricGroup group) |
void |
open(org.apache.flink.metrics.MetricConfig config) |
public void open(org.apache.flink.metrics.MetricConfig config)
open in interface org.apache.flink.metrics.reporter.MetricReporterpublic void close()
close in interface org.apache.flink.metrics.reporter.MetricReporterpublic void notifyOfAddedMetric(org.apache.flink.metrics.Metric metric,
String metricName,
org.apache.flink.metrics.MetricGroup group)
notifyOfAddedMetric in interface org.apache.flink.metrics.reporter.MetricReporterpublic void notifyOfRemovedMetric(org.apache.flink.metrics.Metric metric,
String metricName,
org.apache.flink.metrics.MetricGroup group)
notifyOfRemovedMetric in interface org.apache.flink.metrics.reporter.MetricReporterCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.