Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove slack #alert integration #1716

Merged
merged 5 commits into from
Sep 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/net@v0.29.0
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