Search in sources :

Example 1 with MonitoringDataCollection

use of fish.payara.monitoring.collect.MonitoringDataCollection in project Payara by payara.

the class GrizzlyService method collect.

@Override
public void collect(MonitoringDataCollector collector) {
    if (!"true".equals(monitoringService.getMonitoringEnabled()) || !"HIGH".equals(monitoringService.getModuleMonitoringLevels().getHttpService())) {
        return;
    }
    MonitoringDataCollector httpCollector = collector.in("http");
    httpCollector.prefix("ThreadPool").collectObject(monitoring.getThreadPoolStatsProvider(NETWORK_CONFIG_PREFIX), MonitoringDataCollection::collectObject);
    httpCollector.prefix("ConnectionQueue").collectObject(monitoring.getConnectionQueueStatsProvider(NETWORK_CONFIG_PREFIX), MonitoringDataCollection::collectObject);
    httpCollector.prefix("FileCache").collectObject(monitoring.getFileCacheStatsProvider(NETWORK_CONFIG_PREFIX), MonitoringDataCollection::collectObject);
}
Also used : MonitoringDataCollector(fish.payara.monitoring.collect.MonitoringDataCollector) MonitoringDataCollection(fish.payara.monitoring.collect.MonitoringDataCollection)

Example 2 with MonitoringDataCollection

use of fish.payara.monitoring.collect.MonitoringDataCollection in project Payara by payara.

the class JVMStatsProviderBootstrap method collect.

@Override
public void collect(MonitoringDataCollector collector) {
    MonitoringDataCollector jvm = collector.in("jvm");
    jvm.collectObject(sRuntimeStatsProvider, MonitoringDataCollection::collectObject).collectObject(clStatsProvider, MonitoringDataCollection::collectObject).collectObject(compileStatsProvider, MonitoringDataCollection::collectObject).collectObject(memoryStatsProvider, MonitoringDataCollection::collectObject).collectObject(osStatsProvider, MonitoringDataCollection::collectObject).collectObject(runtimeStatsProvider, MonitoringDataCollection::collectObject).collectObject(threadSysStatsProvider, MonitoringDataCollection::collectObject);
    for (JVMGCStatsProvider gc : jvmStatsProviderList) {
        jvm.group(gc.getGcName()).collectObject(gc, MonitoringDataCollection::collectObject);
    }
}
Also used : MonitoringDataCollector(fish.payara.monitoring.collect.MonitoringDataCollector) MonitoringDataCollection(fish.payara.monitoring.collect.MonitoringDataCollection)

Aggregations

MonitoringDataCollection (fish.payara.monitoring.collect.MonitoringDataCollection)2 MonitoringDataCollector (fish.payara.monitoring.collect.MonitoringDataCollector)2