@Configuration(proxyBeanMethods=false)
@ConditionalOnClass(value=io.prometheus.client.exporter.PushGateway.class)
@ConditionalOnProperty(prefix="management.metrics.export.prometheus.pushgateway",
name="enabled")
public static class PrometheusMetricsExportAutoConfiguration.PrometheusPushGatewayConfiguration
extends java.lang.Object
| Constructor and Description |
|---|
PrometheusPushGatewayConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.boot.actuate.metrics.export.prometheus.PrometheusPushGatewayManager |
prometheusPushGatewayManager(io.prometheus.client.CollectorRegistry collectorRegistry,
PrometheusProperties prometheusProperties,
org.springframework.core.env.Environment environment) |
@Bean
@ConditionalOnMissingBean
public org.springframework.boot.actuate.metrics.export.prometheus.PrometheusPushGatewayManager prometheusPushGatewayManager(io.prometheus.client.CollectorRegistry collectorRegistry,
PrometheusProperties prometheusProperties,
org.springframework.core.env.Environment environment)