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:
Callum Styan 2019-09-04 16:34:09 -07:00
parent 3b75614892
commit a98599bea8

View file

@ -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,
}, },
}, },
{ {