mirror of https://github.com/prometheus/prometheus
Add alert for WAL remote write falling behind.
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>pull/5681/head
parent
638204c775
commit
e248ffb220
|
@ -156,6 +156,22 @@
|
||||||
message: 'Prometheus failed to send {{ printf "%.1f" $value }}% samples',
|
message: 'Prometheus failed to send {{ printf "%.1f" $value }}% samples',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
alert: 'PrometheusRemoteWriteBehind',
|
||||||
|
expr: |||
|
||||||
|
prometheus_remote_storage_highest_timestamp_in{%(prometheusSelector)s}
|
||||||
|
- on(job, instance) group_right
|
||||||
|
prometheus_remote_storage_queue_highest_sent_timestamp{%(prometheusSelector)s}
|
||||||
|
> 60
|
||||||
|
||| % $._config,
|
||||||
|
'for': '15m',
|
||||||
|
labels: {
|
||||||
|
severity: 'critical',
|
||||||
|
},
|
||||||
|
annotations: {
|
||||||
|
message: 'Prometheus remote write is {{ printf "%.1f" $value }}s behind.',
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
alert: 'PrometheusRuleFailures',
|
alert: 'PrometheusRuleFailures',
|
||||||
'for': '15m',
|
'for': '15m',
|
||||||
|
|
Loading…
Reference in New Issue