k8s.io/test-infra@v0.0.0-20240520184403-27c6b4c223d8/config/prow/cluster/monitoring/secrets/alertmanager-prow_secret.yaml (about) 1 # PROW_INSTANCE_SPECIFIC 2 # Slack endpoint, or even different methods of alerting 3 # Please replace '{{ api_url }}' below with the URL of slack incoming hook 4 # before `kubectl apply -f` 5 apiVersion: v1 6 kind: Secret 7 metadata: 8 name: alertmanager-prow 9 namespace: prow-monitoring 10 stringData: 11 alertmanager.yaml: | 12 global: 13 resolve_timeout: 5m 14 15 route: 16 group_by: ['alertname', 'job'] 17 group_wait: 30s 18 group_interval: 10m 19 repeat_interval: 4h 20 receiver: 'slack-warnings' 21 routes: 22 - receiver: 'cluster-api-aws-alerts' 23 group_interval: 5m 24 repeat_interval: 2h 25 match: 26 boskos_type: aws-account 27 - receiver: 'slack-alerts' 28 group_interval: 5m 29 repeat_interval: 2h 30 match_re: 31 severity: 'critical|high' 32 33 34 receivers: 35 - name: 'slack-warnings' 36 slack_configs: 37 - channel: '#prow-alerts' 38 api_url: '{{ api_url }}' 39 icon_url: https://avatars3.githubusercontent.com/u/3380462 40 text: '@test-infra-oncall {{ template "custom_slack_text" . }}' 41 link_names: true 42 - name: 'slack-alerts' 43 slack_configs: 44 - channel: '#testing-ops' 45 api_url: '{{ api_url }}' 46 icon_url: https://avatars3.githubusercontent.com/u/3380462 47 text: '@test-infra-oncall {{ template "custom_slack_text" . }}' 48 link_names: true 49 - name: 'cluster-api-aws-alerts' 50 slack_configs: 51 - channel: '#cluster-api-aws-alerts' 52 api_url: '{{ api_url }}' 53 icon_url: https://avatars3.githubusercontent.com/u/3380462 54 text: '@aws-account-users {{ template "custom_slack_text" . }}' 55 link_names: true 56 57 templates: 58 - '*.tmpl' 59 msg.tmpl: | 60 {{ define "custom_slack_text" }}{{ .CommonAnnotations.message }}{{ end }} 61 type: Opaque