Package io.micrometer.prometheus.rsocket
Class PrometheusController
- java.lang.Object
-
- io.micrometer.prometheus.rsocket.PrometheusController
-
@RestController public class PrometheusController extends java.lang.ObjectAControllerfor endpoints to be scraped by Prometheus.
-
-
Constructor Summary
Constructors Constructor Description PrometheusController(io.micrometer.prometheus.PrometheusMeterRegistry meterRegistry, PrometheusControllerProperties properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconnect()reactor.core.publisher.Mono<java.lang.String>prometheus()reactor.core.publisher.Mono<java.lang.String>proxyMetrics()
-
-
-
Constructor Detail
-
PrometheusController
public PrometheusController(io.micrometer.prometheus.PrometheusMeterRegistry meterRegistry, PrometheusControllerProperties properties)
-
-
Method Detail
-
connect
@PostConstruct public void connect() throws java.security.NoSuchAlgorithmException- Throws:
java.security.NoSuchAlgorithmException
-
proxyMetrics
@GetMapping(value="/metrics/proxy", produces="text/plain") public reactor.core.publisher.Mono<java.lang.String> proxyMetrics()
-
prometheus
@GetMapping(value="/metrics/connected", produces="text/plain") public reactor.core.publisher.Mono<java.lang.String> prometheus()
-
-