@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 |
|---|---|
io.prometheus.client.Collector |
createCollector() |
protected void |
shutDown() |
protected void |
startUp() |
@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)
protected void startUp()
throws Exception
startUp in class com.google.common.util.concurrent.AbstractIdleServiceExceptionprotected void shutDown()
throws Exception
shutDown in class com.google.common.util.concurrent.AbstractIdleServiceExceptionpublic io.prometheus.client.Collector createCollector()
Copyright © 2012–2022 Graylog, Inc.. All rights reserved.