Monitoring Petals ESB with Prometheus

compared with
Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (3)

View Page History
{section}{column}

h1. What is Prometheus?

[Prometheus|https://prometheus.io] is an open-source systems monitoring and alerting toolkit.

[^prometheus_get-api-targets.json]


!https://prometheus.io/assets/architecture.png|border=1,width=700!

As a fallback, the file contents are also re-read periodically at the specified refresh interval.
{quote}

h1. Visualizing monitored metrics

h2. Prometheus API

Prometheus server is reachable through its [HTTP API|https://prometheus.io/docs/prometheus/latest/querying/api]. It allows to directly query metrics and can be useful in specific cases.

For instance, by requesting */api/v1/targets* you can get an overview of configured targets and their health in json format.
request: {code}curl -X GET http://localhost:9090/api/v1/targets{code}
response: [^prometheus_get-api-targets.json].

However there is a web UI already build in Prometheus server and there are open sources solution natively compatible with this API (like [Grafana|https://grafana.com]).

h2. Prometheus web UI

h2. Grafana