From a1bdb7802e4ed85abd8d2c46b019682c6b92a37a Mon Sep 17 00:00:00 2001 From: SiskoUrso <91812199+SiskoUrso@users.noreply.github.com> Date: Sun, 16 Apr 2023 22:03:19 -0500 Subject: [PATCH] adding metrics_path to snippet Adding a change to the prometheus config snippet, it should contain: metrics_path: '/metrics' Putting the target url with the "/metrics" in it will prevent prometheus from loading. --- Prometheus-Integration.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Prometheus-Integration.md b/Prometheus-Integration.md index 30d20ea..c5f2765 100644 --- a/Prometheus-Integration.md +++ b/Prometheus-Integration.md @@ -20,6 +20,7 @@ Put the following into your Prometheus config: - job_name: 'uptime' scrape_interval: 30s scheme: http + metrics_path: '/metrics' static_configs: - targets: ['uptime-kuma.url'] basic_auth: # Only needed if authentication is enabled (default) @@ -42,4 +43,4 @@ sum(monitor_response_time) by (monitor_name) sum(monitor_reponse_time{monitor_url="https://www.bbc.co.uk/"}) # Show the current status of Google.com monitor_status{monitor_name="Google"} -``` \ No newline at end of file +```