In this part we explain you how to expose metrics to Prometheus.
Configure the gravitee.yml file to enable metrics service. By default, Prometheus support is activated and exposed from the technical API.
By default, the technical API is bind to localhost only, so it must not be invoked outside localhost. If you need to expose the API wider, you may have to set the services.core.http.host property to the correct network interface. If you’re running within a docker container, set the IP to the IP address of the container. Each change requires a restart.
Here is an example to ask Prometheus to scrape the API Gateway technical API where from formatted metrics are available.