Skip to content

Commit

Permalink
Add Team Honeybadger Slack (#1575)
Browse files Browse the repository at this point in the history
  • Loading branch information
uvegla authored Mar 19, 2024
1 parent a0db11d commit 745f012
Show file tree
Hide file tree
Showing 10 changed files with 274 additions and 0 deletions.
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]

### Added

- Add team `honeybadger` slack router and receiver.

### Removed

- Remove the `azure` provider.
Expand Down
30 changes: 30 additions & 0 deletions files/templates/alertmanager/alertmanager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,13 @@ route:
- team="turtles"
continue: false

# Team Honeybadger Slack
- receiver: team_honeybadger_slack
matchers:
- severity=~"page|notify"
- team="honeybadger"
continue: false

receivers:
- name: root

Expand Down Expand Up @@ -361,6 +368,29 @@ receivers:
url: '{{ template "__alert_silence_link" .}}'
style: '{{ if eq .Status "firing" }}danger{{ else }}default{{ end }}'

- name: team_honeybadger_slack
slack_configs:
- channel: '#alert-honeybadger'
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 "__prometheusurl" . }}'
- 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 }}'

- name: opsgenie_router
opsgenie_configs:
- api_key: [[ .OpsgenieKey ]]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,13 @@ route:
- team="turtles"
continue: false

# Team Honeybadger Slack
- receiver: team_honeybadger_slack
matchers:
- severity=~"page|notify"
- team="honeybadger"
continue: false

receivers:
- name: root

Expand Down Expand Up @@ -295,6 +302,29 @@ receivers:
url: '{{ template "__alert_silence_link" .}}'
style: '{{ if eq .Status "firing" }}danger{{ else }}default{{ end }}'

- name: team_honeybadger_slack
slack_configs:
- channel: '#alert-honeybadger'
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 "__prometheusurl" . }}'
- 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 }}'

- name: opsgenie_router
opsgenie_configs:
- api_key: opsgenie-key
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,13 @@ route:
- team="turtles"
continue: false

# Team Honeybadger Slack
- receiver: team_honeybadger_slack
matchers:
- severity=~"page|notify"
- team="honeybadger"
continue: false

receivers:
- name: root

Expand Down Expand Up @@ -295,6 +302,29 @@ receivers:
url: '{{ template "__alert_silence_link" .}}'
style: '{{ if eq .Status "firing" }}danger{{ else }}default{{ end }}'

- name: team_honeybadger_slack
slack_configs:
- channel: '#alert-honeybadger'
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 "__prometheusurl" . }}'
- 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 }}'

- name: opsgenie_router
opsgenie_configs:
- api_key: opsgenie-key
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,13 @@ route:
- team="turtles"
continue: false

# Team Honeybadger Slack
- receiver: team_honeybadger_slack
matchers:
- severity=~"page|notify"
- team="honeybadger"
continue: false

receivers:
- name: root

Expand Down Expand Up @@ -295,6 +302,29 @@ receivers:
url: '{{ template "__alert_silence_link" .}}'
style: '{{ if eq .Status "firing" }}danger{{ else }}default{{ end }}'

- name: team_honeybadger_slack
slack_configs:
- channel: '#alert-honeybadger'
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 "__prometheusurl" . }}'
- 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 }}'

- name: opsgenie_router
opsgenie_configs:
- api_key: opsgenie-key
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,13 @@ route:
- team="turtles"
continue: false

# Team Honeybadger Slack
- receiver: team_honeybadger_slack
matchers:
- severity=~"page|notify"
- team="honeybadger"
continue: false

receivers:
- name: root

Expand Down Expand Up @@ -295,6 +302,29 @@ receivers:
url: '{{ template "__alert_silence_link" .}}'
style: '{{ if eq .Status "firing" }}danger{{ else }}default{{ end }}'

- name: team_honeybadger_slack
slack_configs:
- channel: '#alert-honeybadger'
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 "__prometheusurl" . }}'
- 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 }}'

- name: opsgenie_router
opsgenie_configs:
- api_key: opsgenie-key
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,13 @@ route:
- team="turtles"
continue: false

# Team Honeybadger Slack
- receiver: team_honeybadger_slack
matchers:
- severity=~"page|notify"
- team="honeybadger"
continue: false

receivers:
- name: root

Expand Down Expand Up @@ -295,6 +302,29 @@ receivers:
url: '{{ template "__alert_silence_link" .}}'
style: '{{ if eq .Status "firing" }}danger{{ else }}default{{ end }}'

- name: team_honeybadger_slack
slack_configs:
- channel: '#alert-honeybadger'
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 "__prometheusurl" . }}'
- 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 }}'

- name: opsgenie_router
opsgenie_configs:
- api_key: opsgenie-key
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,13 @@ route:
- team="turtles"
continue: false

# Team Honeybadger Slack
- receiver: team_honeybadger_slack
matchers:
- severity=~"page|notify"
- team="honeybadger"
continue: false

receivers:
- name: root

Expand Down Expand Up @@ -295,6 +302,29 @@ receivers:
url: '{{ template "__alert_silence_link" .}}'
style: '{{ if eq .Status "firing" }}danger{{ else }}default{{ end }}'

- name: team_honeybadger_slack
slack_configs:
- channel: '#alert-honeybadger'
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 "__prometheusurl" . }}'
- 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 }}'

- name: opsgenie_router
opsgenie_configs:
- api_key: opsgenie-key
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,13 @@ route:
- team="turtles"
continue: false

# Team Honeybadger Slack
- receiver: team_honeybadger_slack
matchers:
- severity=~"page|notify"
- team="honeybadger"
continue: false

receivers:
- name: root

Expand Down Expand Up @@ -295,6 +302,29 @@ receivers:
url: '{{ template "__alert_silence_link" .}}'
style: '{{ if eq .Status "firing" }}danger{{ else }}default{{ end }}'

- name: team_honeybadger_slack
slack_configs:
- channel: '#alert-honeybadger'
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 "__prometheusurl" . }}'
- 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 }}'

- name: opsgenie_router
opsgenie_configs:
- api_key: opsgenie-key
Expand Down
Loading

0 comments on commit 745f012

Please sign in to comment.