@RestController
public class PrometheusController
extends java.lang.Object
Controller for endpoints to be scraped by Prometheus.| Constructor and Description |
|---|
PrometheusController(io.micrometer.prometheus.PrometheusMeterRegistry meterRegistry,
PrometheusControllerProperties properties) |
| Modifier and Type | Method and Description |
|---|---|
void |
connect() |
reactor.core.publisher.Mono<java.lang.String> |
prometheus() |
reactor.core.publisher.Mono<java.lang.String> |
proxyMetrics() |
public PrometheusController(io.micrometer.prometheus.PrometheusMeterRegistry meterRegistry,
PrometheusControllerProperties properties)
@PostConstruct
public void connect()
throws java.security.NoSuchAlgorithmException
java.security.NoSuchAlgorithmException@GetMapping(value="/metrics/proxy",
produces="text/plain")
public reactor.core.publisher.Mono<java.lang.String> proxyMetrics()
@GetMapping(value="/metrics/connected",
produces="text/plain")
public reactor.core.publisher.Mono<java.lang.String> prometheus()