PrometheusErrorSendingAlertsToSomeAlertmanagers: use errors_total only

Signed-off-by: Dimitar Dimitrov <dimitar.dimitrov@grafana.com>
This commit is contained in:
Dimitar Dimitrov 2024-09-19 11:21:36 +02:00
parent b90dbdb085
commit f04654b73b
No known key found for this signature in database
GPG key ID: 4541B04E6C90EBC3

View file

@ -73,19 +73,16 @@
expr: |||
(
rate(prometheus_notifications_errors_total{%(prometheusSelector)s}[5m])
/
rate(prometheus_notifications_sent_total{%(prometheusSelector)s}[5m])
)
* 100
> 1
> 0
||| % $._config,
'for': '15m',
labels: {
severity: 'warning',
},
annotations: {
summary: 'Prometheus has encountered more than 1% errors sending alerts to a specific Alertmanager.',
description: '{{ printf "%%.1f" $value }}%% errors while sending alerts from Prometheus %(prometheusName)s to Alertmanager {{$labels.alertmanager}}.' % $._config,
summary: 'Prometheus has encountered errors sending alerts to a specific Alertmanager.',
description: '{{ printf "%%.1f" $value }} errors/sec while sending alerts from Prometheus %(prometheusName)s to Alertmanager {{$labels.alertmanager}}.' % $._config,
},
},
{