Search in sources :

Example 6 with MetricUpdates

use of org.apache.beam.runners.core.metrics.MetricUpdates in project beam by apache.

the class JetMetricResults method updateLocalMetrics.

private synchronized void updateLocalMetrics(IMap<String, MetricUpdates> metricsAccumulator) {
    counters.clear();
    distributions.clear();
    gauges.clear();
    for (MetricUpdates metricUpdates : metricsAccumulator.values()) {
        counters.merge(metricUpdates.counterUpdates());
        distributions.merge(metricUpdates.distributionUpdates());
        gauges.merge(metricUpdates.gaugeUpdates());
    }
}
Also used : MetricUpdates(org.apache.beam.runners.core.metrics.MetricUpdates)

Aggregations

MetricUpdates (org.apache.beam.runners.core.metrics.MetricUpdates)6 CounterUpdate (com.google.api.services.dataflow.model.CounterUpdate)1 JetInstance (com.hazelcast.jet.JetInstance)1 Job (com.hazelcast.jet.Job)1