Skip to content

Commit

Permalink
quote the tmp_string
Browse files Browse the repository at this point in the history
  • Loading branch information
TheoBrigitte committed Dec 10, 2024
1 parent ed829e1 commit 9d0c548
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,21 +199,21 @@ receivers:
actions: &slack-actions
- type: button
text: ':green_book: OpsRecipe'
url: {{`{{ template "__runbookurl" . }}`}}
style: {{`{{ if eq .Status "firing" }}primary{{ else }}default{{ end }}`}}
url: '{{`{{ template "__runbookurl" . }}`}}'
style: '{{`{{ if eq .Status "firing" }}primary{{ else }}default{{ end }}`}}'
- type: button
text: ':coffin: Linked PMs'
url: {{`{{ template "__alert_linked_postmortems" . }}`}}
url: '{{`{{ template "__alert_linked_postmortems" . }}`}}'
- type: button
text: ':mag: Query'
url: {{`{{ template "__alerturl" . }}`}}
url: '{{`{{ template "__alerturl" . }}`}}'
- type: button
text: ':grafana: Dashboard'
url: {{`{{ template "__dashboardurl" . }}`}}
url: '{{`{{ template "__dashboardurl" . }}`}}'
- type: button
text: ':no_bell: Silence'
url: {{`{{ template "__alert_silence_link" .}}`}}
style: {{`{{ if eq .Status "firing" }}danger{{ else }}default{{ end }}`}}
url: '{{`{{ template "__alert_silence_link" .}}`}}'
style: '{{`{{ if eq .Status "firing" }}danger{{ else }}default{{ end }}`}}'

- name: team_atlas_slack
slack_configs:
Expand Down Expand Up @@ -358,7 +358,7 @@ receivers:
- name: opsgenie_router
opsgenie_configs:
- api_key: {{ .Values.monitoring.opsgenieApiKey }}
tags: {{`{{ (index .Alerts 0).Labels.alertname }},{{ (index .Alerts 0).Labels.cluster_type }},{{ (index .Alerts 0).Labels.severity }},{{ (index .Alerts 0).Labels.team }},{{ (index .Alerts 0).Labels.area }},{{ (index .Alerts 0).Labels.service_priority }},{{ (index .Alerts 0).Labels.provider }},{{ (index .Alerts 0).Labels.installation }},{{ (index .Alerts 0).Labels.pipeline }},{{ (index .Alerts 0).Labels.customer }}`}}
tags: '{{`{{ (index .Alerts 0).Labels.alertname }},{{ (index .Alerts 0).Labels.cluster_type }},{{ (index .Alerts 0).Labels.severity }},{{ (index .Alerts 0).Labels.team }},{{ (index .Alerts 0).Labels.area }},{{ (index .Alerts 0).Labels.service_priority }},{{ (index .Alerts 0).Labels.provider }},{{ (index .Alerts 0).Labels.installation }},{{ (index .Alerts 0).Labels.pipeline }},{{ (index .Alerts 0).Labels.customer }}`}}'

inhibit_rules:
- source_matchers:
Expand Down

0 comments on commit 9d0c548

Please sign in to comment.