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

Alertmanager - API v2 #407

Open
mtotone opened this issue Sep 30, 2024 · 0 comments · May be fixed by #410
Open

Alertmanager - API v2 #407

mtotone opened this issue Sep 30, 2024 · 0 comments · May be fixed by #410

Comments

@mtotone
Copy link

mtotone commented Sep 30, 2024

Hello,

Is your feature request related to a problem? Please describe.

When I try to ack an alert, alerta logs display:

2024-09-30 13:08:50,335 alerta.plugins.prometheus[51]: [DEBUG] Alertmanager: 410 - {"status":"deprecated","error":"The Alertmanager v1 API was deprecated in version 0.16.0 and is removed as of version 0.28.0 - please use the equivalent route in the v2 API"}
2024-09-30 13:09:31,845 alerta.plugins.prometheus[70]: [DEBUG] Alertmanager response was: 410 - {"status":"deprecated","error":"The Alertmanager v1 API was deprecated in version 0.16.0 and is removed as of version 0.28.0 - please use the equivalent route in the v2 API"}

Describe the solution you'd like

Switch to API v2 url or make it configurable.

For example: https://github.com/alerta/alerta-contrib/blob/master/plugins/prometheus/alerta_prometheus.py#L62

Describe alternatives you've considered

None for now. In the next release of Altermanager, v1 API will be removed.

Additional context

N/A

@Set3007 Set3007 linked a pull request Feb 18, 2025 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant