Update docs for deprecation and removal of API v1 (#3841)

This commit is contained in:
George Robinson 2024-05-14 21:35:37 +01:00 committed by GitHub
parent c4a763c401
commit df7041114d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 4 deletions

View File

@ -12,10 +12,12 @@ rules](https://prometheus.io/docs/prometheus/latest/configuration/alerting_rules
recommended to configure alerting rules in Prometheus based on time series data recommended to configure alerting rules in Prometheus based on time series data
rather than implementing a direct client.__ rather than implementing a direct client.__
The Alertmanager has two APIs, v1 and v2, both listening for alerts. The scheme You send alerts to Alertmanager via API v2. The scheme for v2 is specified as
for v1 is described in the code snipped below. The scheme for v2 is specified as an OpenAPI specification that can be found [here
an OpenAPI specification that can be found in the [Alertmanager ](https://github.com/prometheus/alertmanager/blob/master/api/v2/openapi.yaml).
repository](https://github.com/prometheus/alertmanager/blob/master/api/v2/openapi.yaml). API v1 was deprecated in Alertmanager version 0.16.0 and removed in Alertmanager
version 0.27.0.
Clients are expected to continuously re-send alerts as long as they are still Clients are expected to continuously re-send alerts as long as they are still
active (usually on the order of 30 seconds to 3 minutes). Clients can push a active (usually on the order of 30 seconds to 3 minutes). Clients can push a
list of alerts to Alertmanager via a POST request. list of alerts to Alertmanager via a POST request.