Update remote-write alert rules mixin (#8423)

Signed-off-by: ravilr <raviprasad_lr@yahoo.com>
This commit is contained in:
ravilr 2021-01-31 12:07:49 -08:00 committed by GitHub
parent 91eef5e3bf
commit adc8807851
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -158,12 +158,12 @@
alert: 'PrometheusRemoteStorageFailures',
expr: |||
(
rate(prometheus_remote_storage_failed_samples_total{%(prometheusSelector)s}[5m])
(rate(prometheus_remote_storage_failed_samples_total{%(prometheusSelector)s}[5m]) or rate(prometheus_remote_storage_samples_failed_total{%(prometheusSelector)s}[5m]))
/
(
rate(prometheus_remote_storage_failed_samples_total{%(prometheusSelector)s}[5m])
(rate(prometheus_remote_storage_failed_samples_total{%(prometheusSelector)s}[5m]) or rate(prometheus_remote_storage_samples_failed_total{%(prometheusSelector)s}[5m]))
+
rate(prometheus_remote_storage_succeeded_samples_total{%(prometheusSelector)s}[5m])
(rate(prometheus_remote_storage_succeeded_samples_total{%(prometheusSelector)s}[5m]) or rate(prometheus_remote_storage_samples_total{%(prometheusSelector)s}[5m]))
)
)
* 100