1
0
Fork 0
mirror of https://github.com/docker/awesome-compose.git synced 2025-04-19 07:18:06 +02:00

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 <feroxsnake@me.com>
This commit is contained in:
Anatoly Kolpakov 2024-11-17 11:36:21 +05:00 committed by GitHub
parent 18f59bdb09
commit 90192cfbe3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
- localhost:9090