From ef130972b8a1e478362b8de95e308ac1cd263845 Mon Sep 17 00:00:00 2001 From: boyska Date: Sun, 2 Jul 2023 18:26:46 +0200 Subject: [PATCH] prometheus setup howto --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 16c7a38..3ffe120 100644 --- a/README.md +++ b/README.md @@ -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'] +