Package org.graylog.metrics.prometheus
Class PrometheusExporter
java.lang.Object
com.google.common.util.concurrent.AbstractIdleService
org.graylog.metrics.prometheus.PrometheusExporter
- All Implemented Interfaces:
com.google.common.util.concurrent.Service
@Singleton
public class PrometheusExporter
extends com.google.common.util.concurrent.AbstractIdleService
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.google.common.util.concurrent.Service
com.google.common.util.concurrent.Service.Listener, com.google.common.util.concurrent.Service.State
-
Constructor Summary
ConstructorDescriptionPrometheusExporter
(boolean enabled, com.google.common.net.HostAndPort bindAddress, com.github.joschi.jadconfig.util.Duration mappingFileRefreshInterval, ScheduledExecutorService scheduler, com.codahale.metrics.MetricRegistry metricRegistry, javax.inject.Provider<PrometheusMappingFilesHandler> mappingFilesHandlerProvider, PrometheusExporterHTTPServer.Factory httpServerFactory) -
Method Summary
Methods inherited from class com.google.common.util.concurrent.AbstractIdleService
addListener, awaitRunning, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, awaitTerminated, executor, failureCause, isRunning, serviceName, startAsync, state, stopAsync, toString
-
Constructor Details
-
PrometheusExporter
@Inject public PrometheusExporter(@Named("prometheus_exporter_enabled") boolean enabled, @Named("prometheus_exporter_bind_address") com.google.common.net.HostAndPort bindAddress, @Named("prometheus_exporter_mapping_file_refresh_interval") com.github.joschi.jadconfig.util.Duration mappingFileRefreshInterval, @Named("daemonScheduler") ScheduledExecutorService scheduler, com.codahale.metrics.MetricRegistry metricRegistry, javax.inject.Provider<PrometheusMappingFilesHandler> mappingFilesHandlerProvider, PrometheusExporterHTTPServer.Factory httpServerFactory)
-
-
Method Details