@Singleton
public class PrometheusExporter
extends com.google.common.util.concurrent.AbstractIdleService
| Constructor and Description |
|---|
PrometheusExporter(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) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
shutDown() |
protected void |
startUp() |
addListener, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, executor, failureCause, isRunning, serviceName, startAsync, state, stopAsync, toString@Inject
public PrometheusExporter(@Named(value="prometheus_exporter_enabled")
boolean enabled,
@Named(value="prometheus_exporter_bind_address")
com.google.common.net.HostAndPort bindAddress,
@Named(value="prometheus_exporter_mapping_file_refresh_interval")
com.github.joschi.jadconfig.util.Duration mappingFileRefreshInterval,
@Named(value="daemonScheduler")
ScheduledExecutorService scheduler,
com.codahale.metrics.MetricRegistry metricRegistry,
javax.inject.Provider<PrometheusMappingFilesHandler> mappingFilesHandlerProvider,
PrometheusExporterHTTPServer.Factory httpServerFactory)
Copyright © 2012–2021 Graylog, Inc.. All rights reserved.