[GH-ISSUE #758] prometheus config alertmanager error #22956

Open
opened 2026-08-20 21:54:10 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @agitate on GitHub (Jun 9, 2026).
Original GitHub issue: https://github.com/docker/awesome-compose/issues/758

When starting up the containers, prometheus exits with the error:

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

I edited the prometheus.yml and changed api_version from v1 to v2 and that fixed it.

Originally created by @agitate on GitHub (Jun 9, 2026). Original GitHub issue: https://github.com/docker/awesome-compose/issues/758 When starting up the containers, prometheus exits with the error: `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` I edited the prometheus.yml and changed `api_version` from `v1` to `v2` and that fixed it.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/awesome-compose#22956