Kong / kong-plugin-prometheus

Prometheus plugin for Kong - this plugin has been moved into https://github.com/Kong/kong, please open issues and PRs in that repo
Apache License 2.0
119 stars 57 forks source link

kong-plugin-prometheus Metrics Is random #65

Closed JoeHooo closed 5 years ago

JoeHooo commented 5 years ago

image Kong is deployed on kubernetes with three pods enabled Kong on every pod scrapes data, But the actual Metrics are the sum of the three pods, Every visit to http://{kong-proxy}:9542/metrics is a random pod Metrics

hbagdi commented 5 years ago

Each pod maintains it's own metrics. You shouldn't be reading metrics for Kong via a load balancer, as each request will be routed to a different pod.

You want to use Prometheus to aggregate this data and then consume it via Prometheus.