use of com.spotify.metrics.jvm.GarbageCollectorMetricSet in project apollo by spotify.
the class MetricsModule method semanticMetricRegistry.
@Provides
@Singleton
public SemanticMetricRegistry semanticMetricRegistry() {
final SemanticMetricRegistry metricRegistry = new SemanticMetricRegistry();
LOG.info("Creating SemanticMetricRegistry");
// register JVM metricSets, using an empty MetricId as the FastForwardReporter will prepend
// the injected MetricId.
metricRegistry.register(MetricId.EMPTY, new MemoryUsageGaugeSet());
metricRegistry.register(MetricId.EMPTY, new GarbageCollectorMetricSet());
metricRegistry.register(MetricId.EMPTY, new ThreadStatesMetricSet());
metricRegistry.register(MetricId.EMPTY, CpuGaugeSet.create());
metricRegistry.register(MetricId.EMPTY, new FileDescriptorGaugeSet());
return metricRegistry;
}
Aggregations