prometheus config alertmanager error

Open Beginner friendly
#758 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
90/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
docker-compose, prometheus

Research direction

Start with prometheus.yml, which is mounted at /etc/prometheus/prometheus.yml when the containers start. Check the Alertmanager api_version setting and run the sample containers to confirm Prometheus starts without the YAML parsing error.

Written by the indexing model from the issue text.

Description

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.

Dominant language
HTML
Stars
46.4k
Forks
8.3k
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from docker/awesome-compose

All issues in docker/awesome-compose

Similar issues

More DevOps issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.