fabric

Package coreservices/metrics

The metrics core microservice provides a single endpoint that lets Prometheus scrape metrics from all microservices at once. Prometheus pulls metrics from the metrics core microservice, which in turn pulls and aggregates metrics from all microservices it can reach on the messaging bus.

The endpoint to obtain metrics from the metrics microservice is https://localhost:8080/metrics.core/collect. An optional argument service can be used to obtain the metrics of an individual service. The secretkey argument is mandatory except in local development and testing. It must match the value set for the SecretKey configuration property or else the request will be denied.

Metrics can also be obtained from a microservice directly at https://localhost:8080/hello.example:888/metrics.

The metrics core microservice is unnecessary if metrics are pushed to an OpenTelemetry collector, rather than pulled.