I have set up micronaut using the cli and want to add an endpoint that provides prometheus metrics. Following the guides (and Micronaut: How to get metrics in the Prometheus format?), I added things to my application.yml
the following way:
micronaut:
application:
name: foo-service
metrics:
enabled: true
export:
prometheus:
enabled: true
step: PT1M
descriptions: true
endpoints:
metrics:
enabled: true
prometheus:
enabled: true
sensitive: false
Now I have two endpoints, one at /metrics
and one at /prometheus
. However, I want /metrics
to return prometheus metrics. Any idea how I can achieve that?
I know I could go and put all endpoints under a sub-path, such as /endpoints
using endpoints.all.path
and then proxy to there, but that really is ugly and not that way I want to solve it.