remove default config
This commit is contained in:
parent
ab5a72e8ef
commit
4d71d3fbcc
|
|
@ -1,40 +0,0 @@
|
|||
apiVersion: v1
|
||||
kind: Secret
|
||||
type: Opaque
|
||||
metadata:
|
||||
name: slack-url
|
||||
data:
|
||||
apiUrl: aHR0cHM6Ly9ob29rcy5zbGFjay5jb20vc2VydmljZXMvVDBMNVJBM0UwL0IwMVNNOFJDMzQ2L1hERE9yY1BFN2VBWEpQTUN2YzVGeEl2YQ==
|
||||
---
|
||||
apiVersion: monitoring.coreos.com/v1alpha1
|
||||
kind: AlertmanagerConfig
|
||||
metadata:
|
||||
name: slack
|
||||
labels:
|
||||
alertmanagerConfig: slack
|
||||
spec:
|
||||
route:
|
||||
groupBy: ['alertname']
|
||||
groupWait: 30s
|
||||
groupInterval: 5m
|
||||
repeatInterval: 12h
|
||||
receiver: 'slack-notifications'
|
||||
receivers:
|
||||
- name: 'slack-notifications'
|
||||
slackConfigs:
|
||||
- apiURL:
|
||||
name: slack-url
|
||||
key: apiUrl
|
||||
channel: '#monitoring-alerts'
|
||||
iconURL: 'https://avatars3.githubusercontent.com/u/3380462'
|
||||
sendResolved: true
|
||||
title: '[{{"{{"}} .Status | toUpper{{"}}"}}{{"{{"}} if eq .Status "firing"{{"}}"}}:{{"{{"}} .Alerts.Firing | len{{"}}"}}{{"{{"}} end{{"}}"}}] Monitoring Event Notification'
|
||||
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{{"}}"}}
|
||||
Loading…
Reference in New Issue