Skip to content

Commit

Permalink
fix: commented out the alert manager config from app
Browse files Browse the repository at this point in the history
  • Loading branch information
Nschumi committed Feb 22, 2023
1 parent 9094a0e commit 3eaca22
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion charts/app/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: app
description: A Helm chart for Kubernetes for running an application
type: application
version: 2.0.4
version: 2.0.5
#appVersion: "1.3.0"
46 changes: 23 additions & 23 deletions charts/app/templates/alertmanagerConfig.yaml
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
apiVersion: monitoring.coreos.com/v1alpha1
kind: AlertmanagerConfig
metadata:
name: alerts
spec:
receivers:
- name: slack
slackConfigs:
- channel: '#saga-alerts'
sendResolved: true
# apiVersion: monitoring.coreos.com/v1alpha1
# kind: AlertmanagerConfig
# metadata:
# name: alerts
# spec:
# receivers:
# - name: slack
# slackConfigs:
# - channel: '#saga-alerts'
# sendResolved: true

text: |
{{`{{ range .Alerts }}
*Alert:* {{ .Annotations.summary }} - '{{ .Labels.severity }}'
*Description:* {{ .Annotations.description }}
*Graph:* <{{ .GeneratorURL }}|:chart_with_upwards_trend:> *Runbook:* <{{ .Annotations.runbook }}|:spiral_note_pad:>
*Details:*
{{ range .Labels.SortedPairs }} • *{{ .Name }}:* '{{ .Value }}'
{{ end }}
{{ end }} `}}
# text: |
# {{`{{ range .Alerts }}
# *Alert:* {{ .Annotations.summary }} - '{{ .Labels.severity }}'
# *Description:* {{ .Annotations.description }}
# *Graph:* <{{ .GeneratorURL }}|:chart_with_upwards_trend:> *Runbook:* <{{ .Annotations.runbook }}|:spiral_note_pad:>
# *Details:*
# {{ range .Labels.SortedPairs }} • *{{ .Name }}:* '{{ .Value }}'
# {{ end }}
# {{ end }} `}}

title : {{ `'[{{ .Status | toUpper }}{{ if eq .Status "firing" }}:{{ .Alerts.Firing | len }}{{ end }}] Monitoring Event Notification'` }}
route:
receiver: slack
repeatInterval: 1h
# title : {{ `'[{{ .Status | toUpper }}{{ if eq .Status "firing" }}:{{ .Alerts.Firing | len }}{{ end }}] Monitoring Event Notification'` }}
# route:
# receiver: slack
# repeatInterval: 1h

0 comments on commit 3eaca22

Please sign in to comment.