Skip to content

Alertmanager - API v2 #407

Open
Open
@mtotone

Description

@mtotone

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions