Package org.apache.flink.metrics.jmx
Class JMXReporter
java.lang.Object
org.apache.flink.metrics.jmx.JMXReporter
- All Implemented Interfaces:
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceThe MBean interface for an exposed counter.static interfaceThe MBean interface for an exposed gauge.static interfaceThe MBean interface for an exposed histogram.static interfaceThe MBean interface for an exposed meter.static interfaceThe common MBean interface for all metrics. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()getPort()voidnotifyOfAddedMetric(org.apache.flink.metrics.Metric metric, String metricName, org.apache.flink.metrics.MetricGroup group) voidnotifyOfRemovedMetric(org.apache.flink.metrics.Metric metric, String metricName, org.apache.flink.metrics.MetricGroup group) voidopen(org.apache.flink.metrics.MetricConfig config)
-
Method Details
-
open
public void open(org.apache.flink.metrics.MetricConfig config) - Specified by:
openin interfaceorg.apache.flink.metrics.reporter.MetricReporter
-
close
public void close()- Specified by:
closein interfaceorg.apache.flink.metrics.reporter.MetricReporter
-
getPort
-
notifyOfAddedMetric
public void notifyOfAddedMetric(org.apache.flink.metrics.Metric metric, String metricName, org.apache.flink.metrics.MetricGroup group) - Specified by:
notifyOfAddedMetricin interfaceorg.apache.flink.metrics.reporter.MetricReporter
-
notifyOfRemovedMetric
public void notifyOfRemovedMetric(org.apache.flink.metrics.Metric metric, String metricName, org.apache.flink.metrics.MetricGroup group) - Specified by:
notifyOfRemovedMetricin interfaceorg.apache.flink.metrics.reporter.MetricReporter
-