Fixed indentation

Signed-off-by: beorn7 <beorn@grafana.com>
This commit is contained in:
beorn7 2019-06-26 20:31:05 +02:00
parent d5845ad05b
commit 23c03207e9

View file

@ -20,9 +20,11 @@
{
alert: 'PrometheusNotificationQueueRunningFull',
expr: |||
(
predict_linear(prometheus_notifications_queue_length{%(prometheusSelector)s}[5m], 60 * 30)
>
prometheus_notifications_queue_capacity{%(prometheusSelector)s}
)
||| % $._config,
'for': '15m',
labels: {
@ -35,9 +37,12 @@
{
alert: 'PrometheusErrorSendingAlerts',
expr: |||
100 * rate(prometheus_notifications_errors_total{%(prometheusSelector)s}[5m])
(
rate(prometheus_notifications_errors_total{%(prometheusSelector)s}[5m])
/
rate(prometheus_notifications_sent_total{%(prometheusSelector)s}[5m]) > 1
)
* 100
||| % $._config,
'for': '15m',
labels: {
@ -50,9 +55,13 @@
{
alert: 'PrometheusErrorSendingAlerts',
expr: |||
100 * rate(prometheus_notifications_errors_total{%(prometheusSelector)s}[5m])
(
rate(prometheus_notifications_errors_total{%(prometheusSelector)s}[5m])
/
rate(prometheus_notifications_sent_total{%(prometheusSelector)s}[5m]) > 3
rate(prometheus_notifications_sent_total{%(prometheusSelector)s}[5m])
)
* 100
> 3
||| % $._config,
'for': '15m',
labels: {
@ -143,9 +152,16 @@
{
alert: 'PrometheusRemoteStorageFailures',
expr: |||
(rate(prometheus_remote_storage_failed_samples_total{%(prometheusSelector)s}[1m]) * 100)
(
rate(prometheus_remote_storage_failed_samples_total{%(prometheusSelector)s}[1m])
/
(rate(prometheus_remote_storage_failed_samples_total{%(prometheusSelector)s}[1m]) + rate(prometheus_remote_storage_succeeded_samples_total{%(prometheusSelector)s}[1m]))
(
rate(prometheus_remote_storage_failed_samples_total{%(prometheusSelector)s}[1m])
+
rate(prometheus_remote_storage_succeeded_samples_total{%(prometheusSelector)s}[1m])
)
)
* 100
> 1
||| % $._config,
'for': '15m',
@ -159,9 +175,11 @@
{
alert: 'PrometheusRemoteWriteBehind',
expr: |||
(
prometheus_remote_storage_highest_timestamp_in_seconds{%(prometheusSelector)s}
- on(job, instance) group_right
prometheus_remote_storage_queue_highest_sent_timestamp_seconds{%(prometheusSelector)s}
)
> 120
||| % $._config,
'for': '15m',