prometheus setup howto

This commit is contained in:
boyska 2023-07-02 18:26:46 +02:00
parent ab6a2830b8
commit ef130972b8

View file

@ -100,3 +100,19 @@ This check will verify whether the alarm for temp1 is off
a `/metrics` endpoint is exposed with the common `metric=value` format, which is easily to integrate into your
prometheus instance.
Adding something like this at the end of the `scrape_configs` section of your `prometheus.yml` could be
enough:
- job_name: 'squeow'
# Override the global default and scrape targets from this job every 5 seconds.
scrape_interval: 5s
scrape_timeout: 5s
# metrics_path defaults to '/metrics'
# scheme defaults to 'http'.
static_configs:
- targets: ['localhost:8000']