Skip to content

Commit

Permalink
remove slack #alert integration (#1716)
Browse files Browse the repository at this point in the history
  • Loading branch information
QuentinBisson authored Sep 16, 2024
1 parent dbb473e commit 3a3a7a4
Show file tree
Hide file tree
Showing 27 changed files with 6 additions and 770 deletions.
2 changes: 2 additions & 0 deletions .nancy-ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# pkg:golang/golang.org/x/[email protected]
CVE-2024-8421
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Removed

- Remove unused `#alert` and `#alert-test-installation` slack integration.

## [4.78.1] - 2024-07-04

### Fixed
Expand Down
42 changes: 0 additions & 42 deletions files/templates/alertmanager/alertmanager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,6 @@ route:
- team="rocket"
continue: false

# Team Ops Slack
- receiver: team_ops_slack
matchers:
- severity=~"page|notify"
continue: true

# Team Turtles Slack
- receiver: team_turtles_slack
matchers:
Expand Down Expand Up @@ -509,42 +503,6 @@ receivers:
- api_key: [[ .OpsgenieKey ]]
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 }}"

- name: team_ops_slack
slack_configs:
[[- if eq .Pipeline "stable" ]]
- channel: '#alert'
[[- else ]]
- channel: '#alert-test-[[ .Installation ]]'
[[- end ]]
[[- if .SlackApiToken ]]
http_config:
authorization:
type: Bearer
credentials: [[ .SlackApiToken ]]
[[- if .ProxyURL ]]
proxy_url: [[ .ProxyURL ]]
[[- end ]]
[[- end ]]
send_resolved: true
actions:
- type: button
text: ':green_book: OpsRecipe'
url: '{{ template "__runbookurl" . }}'
style: '{{ if eq .Status "firing" }}primary{{ else }}default{{ end }}'
- type: button
text: ':coffin: Linked PMs'
url: '{{ template "__alert_linked_postmortems" . }}'
- type: button
text: ':mag: Query'
url: '{{ template "__alerturl" . }}'
- type: button
text: ':grafana: Dashboard'
url: '{{ template "__dashboardurl" . }}'
- type: button
text: ':no_bell: Silence'
url: '{{ template "__alert_silence_link" . }}'
style: '{{ if eq .Status "firing" }}danger{{ else }}default{{ end }}'

inhibit_rules:
- source_matchers:
- inhibit_kube_state_metrics_down=true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,6 @@ route:
- team="rocket"
continue: false

# Team Ops Slack
- receiver: team_ops_slack
matchers:
- severity=~"page|notify"
continue: true

# Team Turtles Slack
- receiver: team_turtles_slack
matchers:
Expand Down Expand Up @@ -331,29 +325,6 @@ receivers:
- api_key: opsgenie-key
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 }}"

- name: team_ops_slack
slack_configs:
- channel: '#alert-test-test-installation'
send_resolved: true
actions:
- type: button
text: ':green_book: OpsRecipe'
url: '{{ template "__runbookurl" . }}'
style: '{{ if eq .Status "firing" }}primary{{ else }}default{{ end }}'
- type: button
text: ':coffin: Linked PMs'
url: '{{ template "__alert_linked_postmortems" . }}'
- type: button
text: ':mag: Query'
url: '{{ template "__alerturl" . }}'
- type: button
text: ':grafana: Dashboard'
url: '{{ template "__dashboardurl" . }}'
- type: button
text: ':no_bell: Silence'
url: '{{ template "__alert_silence_link" . }}'
style: '{{ if eq .Status "firing" }}danger{{ else }}default{{ end }}'

inhibit_rules:
- source_matchers:
- inhibit_kube_state_metrics_down=true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,6 @@ route:
- team="rocket"
continue: false

# Team Ops Slack
- receiver: team_ops_slack
matchers:
- severity=~"page|notify"
continue: true

# Team Turtles Slack
- receiver: team_turtles_slack
matchers:
Expand Down Expand Up @@ -331,29 +325,6 @@ receivers:
- api_key: opsgenie-key
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 }}"

- name: team_ops_slack
slack_configs:
- channel: '#alert-test-test-installation'
send_resolved: true
actions:
- type: button
text: ':green_book: OpsRecipe'
url: '{{ template "__runbookurl" . }}'
style: '{{ if eq .Status "firing" }}primary{{ else }}default{{ end }}'
- type: button
text: ':coffin: Linked PMs'
url: '{{ template "__alert_linked_postmortems" . }}'
- type: button
text: ':mag: Query'
url: '{{ template "__alerturl" . }}'
- type: button
text: ':grafana: Dashboard'
url: '{{ template "__dashboardurl" . }}'
- type: button
text: ':no_bell: Silence'
url: '{{ template "__alert_silence_link" . }}'
style: '{{ if eq .Status "firing" }}danger{{ else }}default{{ end }}'

inhibit_rules:
- source_matchers:
- inhibit_kube_state_metrics_down=true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,6 @@ route:
- team="rocket"
continue: false

# Team Ops Slack
- receiver: team_ops_slack
matchers:
- severity=~"page|notify"
continue: true

# Team Turtles Slack
- receiver: team_turtles_slack
matchers:
Expand Down Expand Up @@ -331,29 +325,6 @@ receivers:
- api_key: opsgenie-key
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 }}"

- name: team_ops_slack
slack_configs:
- channel: '#alert-test-test-installation'
send_resolved: true
actions:
- type: button
text: ':green_book: OpsRecipe'
url: '{{ template "__runbookurl" . }}'
style: '{{ if eq .Status "firing" }}primary{{ else }}default{{ end }}'
- type: button
text: ':coffin: Linked PMs'
url: '{{ template "__alert_linked_postmortems" . }}'
- type: button
text: ':mag: Query'
url: '{{ template "__alerturl" . }}'
- type: button
text: ':grafana: Dashboard'
url: '{{ template "__dashboardurl" . }}'
- type: button
text: ':no_bell: Silence'
url: '{{ template "__alert_silence_link" . }}'
style: '{{ if eq .Status "firing" }}danger{{ else }}default{{ end }}'

inhibit_rules:
- source_matchers:
- inhibit_kube_state_metrics_down=true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,6 @@ route:
- team="rocket"
continue: false

# Team Ops Slack
- receiver: team_ops_slack
matchers:
- severity=~"page|notify"
continue: true

# Team Turtles Slack
- receiver: team_turtles_slack
matchers:
Expand Down Expand Up @@ -331,29 +325,6 @@ receivers:
- api_key: opsgenie-key
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 }}"

- name: team_ops_slack
slack_configs:
- channel: '#alert-test-test-installation'
send_resolved: true
actions:
- type: button
text: ':green_book: OpsRecipe'
url: '{{ template "__runbookurl" . }}'
style: '{{ if eq .Status "firing" }}primary{{ else }}default{{ end }}'
- type: button
text: ':coffin: Linked PMs'
url: '{{ template "__alert_linked_postmortems" . }}'
- type: button
text: ':mag: Query'
url: '{{ template "__alerturl" . }}'
- type: button
text: ':grafana: Dashboard'
url: '{{ template "__dashboardurl" . }}'
- type: button
text: ':no_bell: Silence'
url: '{{ template "__alert_silence_link" . }}'
style: '{{ if eq .Status "firing" }}danger{{ else }}default{{ end }}'

inhibit_rules:
- source_matchers:
- inhibit_kube_state_metrics_down=true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,6 @@ route:
- team="rocket"
continue: false

# Team Ops Slack
- receiver: team_ops_slack
matchers:
- severity=~"page|notify"
continue: true

# Team Turtles Slack
- receiver: team_turtles_slack
matchers:
Expand Down Expand Up @@ -331,29 +325,6 @@ receivers:
- api_key: opsgenie-key
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 }}"

- name: team_ops_slack
slack_configs:
- channel: '#alert-test-test-installation'
send_resolved: true
actions:
- type: button
text: ':green_book: OpsRecipe'
url: '{{ template "__runbookurl" . }}'
style: '{{ if eq .Status "firing" }}primary{{ else }}default{{ end }}'
- type: button
text: ':coffin: Linked PMs'
url: '{{ template "__alert_linked_postmortems" . }}'
- type: button
text: ':mag: Query'
url: '{{ template "__alerturl" . }}'
- type: button
text: ':grafana: Dashboard'
url: '{{ template "__dashboardurl" . }}'
- type: button
text: ':no_bell: Silence'
url: '{{ template "__alert_silence_link" . }}'
style: '{{ if eq .Status "firing" }}danger{{ else }}default{{ end }}'

inhibit_rules:
- source_matchers:
- inhibit_kube_state_metrics_down=true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,6 @@ route:
- team="rocket"
continue: false

# Team Ops Slack
- receiver: team_ops_slack
matchers:
- severity=~"page|notify"
continue: true

# Team Turtles Slack
- receiver: team_turtles_slack
matchers:
Expand Down Expand Up @@ -331,29 +325,6 @@ receivers:
- api_key: opsgenie-key
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 }}"

- name: team_ops_slack
slack_configs:
- channel: '#alert-test-test-installation'
send_resolved: true
actions:
- type: button
text: ':green_book: OpsRecipe'
url: '{{ template "__runbookurl" . }}'
style: '{{ if eq .Status "firing" }}primary{{ else }}default{{ end }}'
- type: button
text: ':coffin: Linked PMs'
url: '{{ template "__alert_linked_postmortems" . }}'
- type: button
text: ':mag: Query'
url: '{{ template "__alerturl" . }}'
- type: button
text: ':grafana: Dashboard'
url: '{{ template "__dashboardurl" . }}'
- type: button
text: ':no_bell: Silence'
url: '{{ template "__alert_silence_link" . }}'
style: '{{ if eq .Status "firing" }}danger{{ else }}default{{ end }}'

inhibit_rules:
- source_matchers:
- inhibit_kube_state_metrics_down=true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,6 @@ route:
- team="rocket"
continue: false

# Team Ops Slack
- receiver: team_ops_slack
matchers:
- severity=~"page|notify"
continue: true

# Team Turtles Slack
- receiver: team_turtles_slack
matchers:
Expand Down Expand Up @@ -331,29 +325,6 @@ receivers:
- api_key: opsgenie-key
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 }}"

- name: team_ops_slack
slack_configs:
- channel: '#alert-test-test-installation'
send_resolved: true
actions:
- type: button
text: ':green_book: OpsRecipe'
url: '{{ template "__runbookurl" . }}'
style: '{{ if eq .Status "firing" }}primary{{ else }}default{{ end }}'
- type: button
text: ':coffin: Linked PMs'
url: '{{ template "__alert_linked_postmortems" . }}'
- type: button
text: ':mag: Query'
url: '{{ template "__alerturl" . }}'
- type: button
text: ':grafana: Dashboard'
url: '{{ template "__dashboardurl" . }}'
- type: button
text: ':no_bell: Silence'
url: '{{ template "__alert_silence_link" . }}'
style: '{{ if eq .Status "firing" }}danger{{ else }}default{{ end }}'

inhibit_rules:
- source_matchers:
- inhibit_kube_state_metrics_down=true
Expand Down
Loading

0 comments on commit 3a3a7a4

Please sign in to comment.