Skip to content

Prometheus not working because of invalid api_version #41

@mikogarker

Description

@mikogarker

At Docker Congainers/Monitoring & Management/Prometheus
https://docs.techdox.nz/prometheus/

The prometheus.yml is using api_version: v1 which is no longer supported

alerting:
  alertmanagers:
    - static_configs:
      - targets: []
      scheme: http
      timeout: 10s
      api_version: v1 <---- this is the problem why prometheus was not running in the web

just change the api_version to v2

alerting:
  alertmanagers:
    - static_configs:
      - targets: []
      scheme: http
      timeout: 10s
      api_version: v2

sorry if i am doing an "isssue" the wrong way, this is the first time i ran into something like this, hopethis helps

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions