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

metrics dosent have instance details #104

Closed navaganeshr closed 3 years ago

navaganeshr commented 3 years ago

i have 3 kong instances running on 3 different servers. due to our network design the kong is not exposed prometheus directly. i have written a shell script and it will scrape the metrics and push it to push gateway. But i am unable to filter the data by instance details , how to enable instance details in the metrics ?

rendyfebry commented 3 years ago

+1 for this

The other use case that I can think is when Kong deployed as DBless mode on ECS Cluster, we need instance detail to distinct metrics from each instance.

hbagdi commented 3 years ago

This is not for kong to solve. Prometheus can add meta-data key-value pairs to metrics as they are scrapped. Please refer to your orchestrator's configuration section: https://prometheus.io/docs/prometheus/latest/configuration/configuration/

hbagdi commented 3 years ago

Closing this due to lack of activity. Please re-open if needed.