From 6dab635ba611b5e9aec377a8f2b8f427d1daee28 Mon Sep 17 00:00:00 2001 From: AsfaMumtaz Date: Wed, 5 Jun 2024 11:53:16 +0500 Subject: [PATCH] fix yaml (#258) Co-authored-by: stakater-nordmart-bot --- .../tutorials/inner-loop/add-alerts/add-alerts.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/content/for-developers/tutorials/inner-loop/add-alerts/add-alerts.md b/content/for-developers/tutorials/inner-loop/add-alerts/add-alerts.md index fd4f1464..6d161fe2 100644 --- a/content/for-developers/tutorials/inner-loop/add-alerts/add-alerts.md +++ b/content/for-developers/tutorials/inner-loop/add-alerts/add-alerts.md @@ -86,10 +86,9 @@ Once you have the webhook Url, you can add the AlertManagerConfig. The Alertmana {{ range .Alerts }} *Alert:* `{{ .Labels.severity | toUpper }}` - {{ .Annotations.summary }} *Description:* {{ .Annotations.description }} - *Details:* - {{ range .Labels.SortedPairs }serviceMonitor} *{{ .Name }}:* `{{ .Value }}` - {{ end }} + *Details:* {{ range $k, $v := .Labels }} - *{{ $k }}:* {{ $v }} {{ end }} + {{ end }} title: '[{{ .Status | toUpper }}{{ if eq .Status "firing" }}:{{ .Alerts.Firing | len }}{{ end }}] SAAP Alertmanager Event Notification' httpConfig: tlsConfig: @@ -107,8 +106,8 @@ Once you have the webhook Url, you can add the AlertManagerConfig. The Alertmana receiver: nordmart-review-receiver ``` - !!! note - The indentation follows by **application.alertmanagerConfig**. + !!! note + The indentation follows by **application.alertmanagerConfig**. 1. Save and run `tilt up` at the root of your directory. Hit the space bar and the browser with `TILT` logs will be shown. If everything is green then the changes will be deployed on the cluster.