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;
}
Aggregations