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
| 限定符和类型 | 类和说明 |
|---|---|
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.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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 在接口中 org.apache.flink.metrics.reporter.MetricReporterpublic void close()
close 在接口中 org.apache.flink.metrics.reporter.MetricReporterpublic void notifyOfAddedMetric(org.apache.flink.metrics.Metric metric,
String metricName,
org.apache.flink.metrics.MetricGroup group)
notifyOfAddedMetric 在接口中 org.apache.flink.metrics.reporter.MetricReporterpublic void notifyOfRemovedMetric(org.apache.flink.metrics.Metric metric,
String metricName,
org.apache.flink.metrics.MetricGroup group)
notifyOfRemovedMetric 在接口中 org.apache.flink.metrics.reporter.MetricReporterCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.