From ef87254b0de5713d95ff462642c68e1b8172d255 Mon Sep 17 00:00:00 2001 From: scrypt-kitty Date: Thu, 13 Feb 2025 14:21:35 -0500 Subject: [PATCH] Update prometheus.yml to api_version: v2 Resolved error at runtime expecting v2 but getting v1 Signed-off-by: scrypt-kitty --- prometheus-grafana/prometheus/prometheus.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prometheus-grafana/prometheus/prometheus.yml b/prometheus-grafana/prometheus/prometheus.yml index 18c44da..b0c47b4 100644 --- a/prometheus-grafana/prometheus/prometheus.yml +++ b/prometheus-grafana/prometheus/prometheus.yml @@ -8,7 +8,7 @@ alerting: - targets: [] scheme: http timeout: 10s - api_version: v1 + api_version: v2 scrape_configs: - job_name: prometheus honor_timestamps: true @@ -18,4 +18,4 @@ scrape_configs: scheme: http static_configs: - targets: - - localhost:9090 \ No newline at end of file + - localhost:9090