Search in sources :

Example 1 with ProcessMetricGroup

use of org.apache.flink.runtime.metrics.groups.ProcessMetricGroup in project flink by apache.

the class MetricUtils method instantiateProcessMetricGroup.

public static ProcessMetricGroup instantiateProcessMetricGroup(final MetricRegistry metricRegistry, final String hostname, final Optional<Time> systemResourceProbeInterval) {
    final ProcessMetricGroup processMetricGroup = ProcessMetricGroup.create(metricRegistry, hostname);
    createAndInitializeStatusMetricGroup(processMetricGroup);
    systemResourceProbeInterval.ifPresent(interval -> instantiateSystemMetrics(processMetricGroup, interval));
    return processMetricGroup;
}
Also used : ProcessMetricGroup(org.apache.flink.runtime.metrics.groups.ProcessMetricGroup)

Aggregations

ProcessMetricGroup (org.apache.flink.runtime.metrics.groups.ProcessMetricGroup)1