From 98cdf68a0cdbfa87da227a71a282ad3471f6d0cb Mon Sep 17 00:00:00 2001 From: chenxingyu <wizard_cxy@hotmail.com> Date: Tue, 13 Jun 2017 16:40:56 +0800 Subject: [PATCH] fix alert rule bug --- assets/prometheus/rules/etcd3.rules | 6 +++--- manifests/prometheus/prometheus-k8s-rules.yaml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/assets/prometheus/rules/etcd3.rules b/assets/prometheus/rules/etcd3.rules index a3b2cddd..1b1621e4 100644 --- a/assets/prometheus/rules/etcd3.rules +++ b/assets/prometheus/rules/etcd3.rules @@ -76,7 +76,7 @@ LABELS { } ANNOTATIONS { summary = "slow gRPC requests", - description = "on etcd instance {{ $labels.instance }} gRPC requests to {{ $label.grpc_method }} are slow", + description = "on etcd instance {{ $labels.instance }} gRPC requests to {{ $labels.grpc_method }} are slow", } # HTTP requests alerts @@ -117,7 +117,7 @@ LABELS { } ANNOTATIONS { summary = "slow HTTP requests", - description = "on etcd instance {{ $labels.instance }} HTTP requests to {{ $label.method }} are slow", + description = "on etcd instance {{ $labels.instance }} HTTP requests to {{ $labels.method }} are slow", } # etcd member communication alerts @@ -132,7 +132,7 @@ LABELS { } ANNOTATIONS { summary = "etcd member communication is slow", - description = "etcd instance {{ $labels.instance }} member communication with {{ $label.To }} is slow", + description = "etcd instance {{ $labels.instance }} member communication with {{ $labels.To }} is slow", } # etcd proposal alerts diff --git a/manifests/prometheus/prometheus-k8s-rules.yaml b/manifests/prometheus/prometheus-k8s-rules.yaml index cb062db1..f27cf33b 100644 --- a/manifests/prometheus/prometheus-k8s-rules.yaml +++ b/manifests/prometheus/prometheus-k8s-rules.yaml @@ -122,7 +122,7 @@ data: } ANNOTATIONS { summary = "slow gRPC requests", - description = "on etcd instance {{ $labels.instance }} gRPC requests to {{ $label.grpc_method }} are slow", + description = "on etcd instance {{ $labels.instance }} gRPC requests to {{ $labels.grpc_method }} are slow", } # HTTP requests alerts @@ -163,7 +163,7 @@ data: } ANNOTATIONS { summary = "slow HTTP requests", - description = "on etcd instance {{ $labels.instance }} HTTP requests to {{ $label.method }} are slow", + description = "on etcd instance {{ $labels.instance }} HTTP requests to {{ $labels.method }} are slow", } # etcd member communication alerts @@ -178,7 +178,7 @@ data: } ANNOTATIONS { summary = "etcd member communication is slow", - description = "etcd instance {{ $labels.instance }} member communication with {{ $label.To }} is slow", + description = "etcd instance {{ $labels.instance }} member communication with {{ $labels.To }} is slow", } # etcd proposal alerts -- GitLab