Prometheus and Kong Admin Token

How to use Prometheus to scrape Kong EE?..

Any example of how to use Kong-Admin-Token on scrape_config (Prometheus.yml)?.

As far as I know, Prometheus doesn’t allow you to inject arbitrary headers in scrape config.

You can expose Prometheus metrics on a separate port in Kong using the 3rd approach listed here:

In future version of enterprise, this will be supported out of the box.

Thanks for your replay @hbagdi ,

I need to use Prometheus plugins only… is it possible to expose /metrics (Admin API endpoint) in some way?.


Please read the doc I’ve pointed to.
You get to use the Prometheus plugin and expose metrics on another endpoint, which doesn’t require authentication.