Skip to content

Commit

Permalink
[WIP] add SOP url annotation to prometheus rules: system rules
Browse files Browse the repository at this point in the history
  • Loading branch information
eguzki committed Jan 20, 2021
1 parent 1a3497a commit 903657c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/3scale/amp/component/system_monitoring.go
Expand Up @@ -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",
},
Expand All @@ -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",
},
Expand Down Expand Up @@ -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",
},
Expand Down

0 comments on commit 903657c

Please sign in to comment.