From 90192cfbe30c3a997fdeb71a6dff85ed7312ad45 Mon Sep 17 00:00:00 2001 From: Anatoly Kolpakov Date: Sun, 17 Nov 2024 11:36:21 +0500 Subject: [PATCH] Update prometheus.yml bump alermanager api to v2 due to error: time=2024-11-17T05:52:03.562Z level=ERROR source=main.go:601 msg="Error loading config (--config.file=/etc/prometheus/prometheus.yml)" file=/etc/prometheus/prometheus.yml err="parsing YAML file /etc/prometheus/prometheus.yml: expected Alertmanager api version to be one of [v2] but got v1" Signed-off-by: Anatoly Kolpakov --- 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