Skip to content

Commit

Permalink
Replace Alertmanager link with Silence repository in Alerts notificat…
Browse files Browse the repository at this point in the history
…ions (#1775)
  • Loading branch information
TheoBrigitte authored Dec 17, 2024
1 parent c13636e commit 917b214
Show file tree
Hide file tree
Showing 18 changed files with 18 additions and 10 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Update alert and query URLs for Mimir to point to the Active notification rather than the rule page
- Move link section (runbook, dashboard, explors) before instance to avoid them being lost due to OpsGenie max description being reached
- Move the warnings for missing runbook and dashboard up into the link section

- Replace Alertmanager link with silence repository

### Removed

Expand Down
2 changes: 1 addition & 1 deletion files/templates/alertmanager/notification-template.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@
[[- if .MimirEnabled ]]
👀 Explore: {{ template "__queryurl" . }}
[[- else ]]
🔔 Alertmanager {{ template "__alerturl" . }}
👀 Query: {{ template "__queryurl" . }}
[[- end ]]
🔔 Silence: https://github.com/giantswarm/silences#silences

---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
{{ else -}}
📈 Dashboard: ⚠️ There is no **dashboard** for this alert, time to sketch.
{{ end -}}
🔔 Alertmanager {{ template "__alerturl" . }}
👀 Query: {{ template "__queryurl" . }}
🔔 Silence: https://github.com/giantswarm/silences#silences

---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
{{ else -}}
📈 Dashboard: ⚠️ There is no **dashboard** for this alert, time to sketch.
{{ end -}}
🔔 Alertmanager {{ template "__alerturl" . }}
👀 Query: {{ template "__queryurl" . }}
🔔 Silence: https://github.com/giantswarm/silences#silences

---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
{{ else -}}
📈 Dashboard: ⚠️ There is no **dashboard** for this alert, time to sketch.
{{ end -}}
🔔 Alertmanager {{ template "__alerturl" . }}
👀 Query: {{ template "__queryurl" . }}
🔔 Silence: https://github.com/giantswarm/silences#silences

---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
{{ else -}}
📈 Dashboard: ⚠️ There is no **dashboard** for this alert, time to sketch.
{{ end -}}
🔔 Alertmanager {{ template "__alerturl" . }}
👀 Query: {{ template "__queryurl" . }}
🔔 Silence: https://github.com/giantswarm/silences#silences

---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
{{ else -}}
📈 Dashboard: ⚠️ There is no **dashboard** for this alert, time to sketch.
{{ end -}}
🔔 Alertmanager {{ template "__alerturl" . }}
👀 Query: {{ template "__queryurl" . }}
🔔 Silence: https://github.com/giantswarm/silences#silences

---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
{{ else -}}
📈 Dashboard: ⚠️ There is no **dashboard** for this alert, time to sketch.
{{ end -}}
🔔 Alertmanager {{ template "__alerturl" . }}
👀 Query: {{ template "__queryurl" . }}
🔔 Silence: https://github.com/giantswarm/silences#silences

---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
{{ else -}}
📈 Dashboard: ⚠️ There is no **dashboard** for this alert, time to sketch.
{{ end -}}
🔔 Alertmanager {{ template "__alerturl" . }}
👀 Query: {{ template "__queryurl" . }}
🔔 Silence: https://github.com/giantswarm/silences#silences

---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
{{ else -}}
📈 Dashboard: ⚠️ There is no **dashboard** for this alert, time to sketch.
{{ end -}}
🔔 Alertmanager {{ template "__alerturl" . }}
👀 Query: {{ template "__queryurl" . }}
🔔 Silence: https://github.com/giantswarm/silences#silences

---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
📈 Dashboard: ⚠️ There is no **dashboard** for this alert, time to sketch.
{{ end -}}
👀 Explore: {{ template "__queryurl" . }}
🔔 Silence: https://github.com/giantswarm/silences#silences

---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
📈 Dashboard: ⚠️ There is no **dashboard** for this alert, time to sketch.
{{ end -}}
👀 Explore: {{ template "__queryurl" . }}
🔔 Silence: https://github.com/giantswarm/silences#silences

---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
📈 Dashboard: ⚠️ There is no **dashboard** for this alert, time to sketch.
{{ end -}}
👀 Explore: {{ template "__queryurl" . }}
🔔 Silence: https://github.com/giantswarm/silences#silences

---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
📈 Dashboard: ⚠️ There is no **dashboard** for this alert, time to sketch.
{{ end -}}
👀 Explore: {{ template "__queryurl" . }}
🔔 Silence: https://github.com/giantswarm/silences#silences

---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
📈 Dashboard: ⚠️ There is no **dashboard** for this alert, time to sketch.
{{ end -}}
👀 Explore: {{ template "__queryurl" . }}
🔔 Silence: https://github.com/giantswarm/silences#silences

---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
📈 Dashboard: ⚠️ There is no **dashboard** for this alert, time to sketch.
{{ end -}}
👀 Explore: {{ template "__queryurl" . }}
🔔 Silence: https://github.com/giantswarm/silences#silences

---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
📈 Dashboard: ⚠️ There is no **dashboard** for this alert, time to sketch.
{{ end -}}
👀 Explore: {{ template "__queryurl" . }}
🔔 Silence: https://github.com/giantswarm/silences#silences

---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
📈 Dashboard: ⚠️ There is no **dashboard** for this alert, time to sketch.
{{ end -}}
👀 Explore: {{ template "__queryurl" . }}
🔔 Silence: https://github.com/giantswarm/silences#silences

---

Expand Down

0 comments on commit 917b214

Please sign in to comment.