mirror of
https://github.com/prometheus/prometheus.git
synced 2025-02-21 03:16:00 -08:00
Update remote write max shards alert; properly template/query for max
shards in description. Signed-off-by: Callum Styan <callumstyan@gmail.com>
This commit is contained in:
parent
3b75614892
commit
a98599bea8
|
@ -235,7 +235,6 @@
|
||||||
> on(job, instance) group_right
|
> on(job, instance) group_right
|
||||||
max_over_time(prometheus_remote_storage_shards_max{%(prometheusSelector)s}[5m])
|
max_over_time(prometheus_remote_storage_shards_max{%(prometheusSelector)s}[5m])
|
||||||
)
|
)
|
||||||
== 1
|
|
||||||
||| % $._config,
|
||| % $._config,
|
||||||
'for': '15m',
|
'for': '15m',
|
||||||
labels: {
|
labels: {
|
||||||
|
@ -243,7 +242,7 @@
|
||||||
},
|
},
|
||||||
annotations: {
|
annotations: {
|
||||||
summary: 'Prometheus remote write desired shards calculation wants to run more than configured max shards.',
|
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,
|
description: 'Prometheus %(prometheusName)s remote write desired shards calculation wants to run {{ printf $value }} shards, which is more than the max of {{ printf `prometheus_remote_storage_shards_max{instance="%%s",%(prometheusSelector)s}` $labels.instance | query | first | value }}.' % $._config,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue