Search in sources :

Example 1 with CustomMetricWrapper

use of com.navercorp.pinpoint.profiler.context.monitor.metric.CustomMetricWrapper in project pinpoint by naver.

the class AgentCustomMetricCollector method collect.

public AgentCustomMetricSnapshot collect() {
    Map<String, CustomMetricWrapper> customMetricMap = customMetricRegistryService.getCustomMetricMap();
    int size = customMetricMap.size();
    AgentCustomMetricSnapshot agentCustomMetricSnapshot = new AgentCustomMetricSnapshot(size);
    for (CustomMetricWrapper metricWrapper : customMetricMap.values()) {
        agentCustomMetricSnapshot.add(metricWrapper.snapshot());
    }
    return agentCustomMetricSnapshot;
}
Also used : AgentCustomMetricSnapshot(com.navercorp.pinpoint.profiler.monitor.metric.AgentCustomMetricSnapshot) CustomMetricWrapper(com.navercorp.pinpoint.profiler.context.monitor.metric.CustomMetricWrapper)

Aggregations

CustomMetricWrapper (com.navercorp.pinpoint.profiler.context.monitor.metric.CustomMetricWrapper)1 AgentCustomMetricSnapshot (com.navercorp.pinpoint.profiler.monitor.metric.AgentCustomMetricSnapshot)1