Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prometheus still send alert to alertmanager/api/v1 #5167

Open
ArcherLinXin opened this Issue Feb 1, 2019 · 2 comments

Comments

Projects
None yet
4 participants
@ArcherLinXin
Copy link

ArcherLinXin commented Feb 1, 2019

log is : caller=notifier.go:481 component=notifier alertmanager=http://*******/api/v1/alerts

@roidelapluie

This comment has been minimized.

Copy link
Contributor

roidelapluie commented Mar 10, 2019

Alertmanager v2 api is still fairly new and still has a few bugs.

I think it is safer to keep using v1 for the moment

@simonpasquier

This comment has been minimized.

Copy link
Member

simonpasquier commented Mar 11, 2019

For the record you can always set Prometheus to use the v2 api using relabel_configs like this:

alerting:
  alertmanagers:
    relabel_configs:
      replacement: "/api/v2/alerts"
      target_label: __alerts_path__
   ...

As for when/if we switch Prometheus to the v2 API by default, this is a good question...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.