From 903657c4b22594f3cf7c0a0ba20927efc8a76417 Mon Sep 17 00:00:00 2001 From: Eguzki Astiz Lezaun Date: Tue, 17 Nov 2020 17:54:14 +0100 Subject: [PATCH] [WIP] add SOP url annotation to prometheus rules: system rules --- pkg/3scale/amp/component/system_monitoring.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/3scale/amp/component/system_monitoring.go b/pkg/3scale/amp/component/system_monitoring.go index 1038dc03d..266960d09 100644 --- a/pkg/3scale/amp/component/system_monitoring.go +++ b/pkg/3scale/amp/component/system_monitoring.go @@ -108,7 +108,6 @@ func (system *System) SystemAppPrometheusRules() *monitoringv1.PrometheusRule { { Alert: "ThreescaleSystemApp5XXRequestsHigh", Annotations: map[string]string{ - "sop_url": ThreescaleApicastLatencyHighURL, "summary": "Job {{ $labels.job }} on {{ $labels.namespace }} has more than 50 HTTP 5xx requests in the last minute", "description": "Job {{ $labels.job }} on {{ $labels.namespace }} has more than 50 HTTP 5xx requests in the last minute", }, @@ -121,6 +120,7 @@ func (system *System) SystemAppPrometheusRules() *monitoringv1.PrometheusRule { { Alert: "ThreescaleSystemAppJobDown", Annotations: map[string]string{ + "sop_url": ThreescalePrometheusJobDownURL, "summary": "Job {{ $labels.job }} on {{ $labels.namespace }} is DOWN", "description": "Job {{ $labels.job }} on {{ $labels.namespace }} is DOWN", }, @@ -151,6 +151,7 @@ func (system *System) SystemSidekiqPrometheusRules() *monitoringv1.PrometheusRul { Alert: "ThreescaleSystemSidekiqJobDown", Annotations: map[string]string{ + "sop_url": ThreescalePrometheusJobDownURL, "summary": "Job {{ $labels.job }} on {{ $labels.namespace }} is DOWN", "description": "Job {{ $labels.job }} on {{ $labels.namespace }} is DOWN", },