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

new kong_up metric #91

Closed ionutz22 closed 3 years ago

ionutz22 commented 4 years ago

Hi,

It would be nice if you can adjust the kong prometheus plugin to expose kong_up metric.

eg:

HELP kong_up Could the Kong server be reached
TYPE kong_up gauge

0 - if unreachable 1 - if reachable

This would be useful when using prometheus federation and relay on that building global dashboards in grafana.

Thank you.

fffonion commented 4 years ago

Is datastore_reachable the metrics you are looking for?

ionutz22 commented 4 years ago

I might use that, but it's not clear to me if Kong is able to work without it's datastore. Most of exporters I've work with had the "exporter_up" metric which I could use to identify nodes exposing that service only and create dashboards and alerts based on that.

hbagdi commented 3 years ago

Please use the up metric that Prometheus generates for each target: https://prometheus.io/docs/concepts/jobs_instances/