mirror of
https://github.com/prometheus/prometheus.git
synced 2025-08-06 06:07:11 +02:00
Add a warning alert, since the remote write behind alert will probably
already be going off, about desired shards being higher than max shards. Signed-off-by: Callum Styan <callumstyan@gmail.com>
This commit is contained in:
parent
c40a83f386
commit
3b75614892
@ -225,6 +225,27 @@
|
|||||||
description: 'Prometheus %(prometheusName)s remote write is {{ printf "%%.1f" $value }}s behind for queue {{$labels.queue}}.' % $._config,
|
description: 'Prometheus %(prometheusName)s remote write is {{ printf "%%.1f" $value }}s behind for queue {{$labels.queue}}.' % $._config,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
alert: 'PrometheusRemoteWriteDesiredShards',
|
||||||
|
expr: |||
|
||||||
|
# Without max_over_time, failed scrapes could create false negatives, see
|
||||||
|
# https://www.robustperception.io/alerting-on-gauges-in-prometheus-2-0 for details.
|
||||||
|
(
|
||||||
|
max_over_time(prometheus_remote_storage_shards_desired{%(prometheusSelector)s}[5m])
|
||||||
|
> on(job, instance) group_right
|
||||||
|
max_over_time(prometheus_remote_storage_shards_max{%(prometheusSelector)s}[5m])
|
||||||
|
)
|
||||||
|
== 1
|
||||||
|
||| % $._config,
|
||||||
|
'for': '15m',
|
||||||
|
labels: {
|
||||||
|
severity: 'warning',
|
||||||
|
},
|
||||||
|
annotations: {
|
||||||
|
summary: 'Prometheus remote write desired shards calculation wants to run more than configured max shards.',
|
||||||
|
description: 'Prometheus %(prometheusName)s remote write is {{ printf "%%.1f" $value }}s behind for queue {{$labels.queue}}.' % $._config,
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
alert: 'PrometheusRuleFailures',
|
alert: 'PrometheusRuleFailures',
|
||||||
expr: |||
|
expr: |||
|
||||||
|
Loading…
Reference in New Issue
Block a user