I'm using Kong with KONGA as GUI and added Prometheus plugin for monitoring, however when I try to add the data source to Grafana using Kong endpoint http://host.docker.internal:8001/metrics
I always get the below error
Error reading Prometheus: client_error: client error: 404.
How can I connect Grafana data source to localhost:8001/metrics?
Ok, you have one missing piece in your architecture. You need to add
Prometheusas well which will scrape the metrics fromKong. This is the architecture you should have:The metrics from
Kongwill be ingested byPrometheusfrom time to time and used to create a series database of the metrics obtained.You will then add
Prometheusas a data source inGrafanawhich will then make all the metrics collected byPrometheusavailable toGrafanafor viewing in a dashboard. Here is the official dashboard forKong.