feat(alertmanager): 🎉 Enable managed configuration for alerts
Updates the Alertmanager configuration to use managed settings, enabling streamlined alert handling. Removes outdated configurations and introduces a new email receiver for Grafana alerts.
This commit is contained in:
parent
c9d14d451f
commit
ea6b18b7ea
1 changed files with 19 additions and 98 deletions
|
|
@ -536,108 +536,29 @@ alertmanager:
|
||||||
# If you're migrating existing config, please make sure that `.Values.alertmanager.config`:
|
# If you're migrating existing config, please make sure that `.Values.alertmanager.config`:
|
||||||
# - with `useManagedConfig: false` has structure described [here](https://prometheus.io/docs/alerting/latest/configuration/).
|
# - with `useManagedConfig: false` has structure described [here](https://prometheus.io/docs/alerting/latest/configuration/).
|
||||||
# - with `useManagedConfig: true` has structure described [here](https://docs.victoriametrics.com/operator/api/#vmalertmanagerconfig).
|
# - with `useManagedConfig: true` has structure described [here](https://docs.victoriametrics.com/operator/api/#vmalertmanagerconfig).
|
||||||
useManagedConfig: false
|
useManagedConfig: true
|
||||||
# -- (object) Alertmanager configuration
|
# -- (object) Alertmanager configuration
|
||||||
config:
|
config:
|
||||||
route:
|
route:
|
||||||
receiver: "blackhole"
|
receiver: "outlook"
|
||||||
# group_by: ["alertgroup", "job"]
|
routes:
|
||||||
# group_wait: 30s
|
- matchers:
|
||||||
# group_interval: 5m
|
- alertname=~".*"
|
||||||
# repeat_interval: 12h
|
receiver: outlook
|
||||||
# routes:
|
|
||||||
#
|
|
||||||
# # Duplicate code_owner routes to teams
|
|
||||||
# # These will send alerts to team channels but continue
|
|
||||||
# # processing through the rest of the tree to handled by on-call
|
|
||||||
# - matchers:
|
|
||||||
# - code_owner_channel!=""
|
|
||||||
# - severity=~"info|warning|critical"
|
|
||||||
# group_by: ["code_owner_channel", "alertgroup", "job"]
|
|
||||||
# receiver: slack-code-owners
|
|
||||||
#
|
|
||||||
# # Standard on-call routes
|
|
||||||
# - matchers:
|
|
||||||
# - severity=~"info|warning|critical"
|
|
||||||
# receiver: slack-monitoring
|
|
||||||
# continue: true
|
|
||||||
#
|
|
||||||
# inhibit_rules:
|
|
||||||
# - target_matchers:
|
|
||||||
# - severity=~"warning|info"
|
|
||||||
# source_matchers:
|
|
||||||
# - severity=critical
|
|
||||||
# equal:
|
|
||||||
# - cluster
|
|
||||||
# - namespace
|
|
||||||
# - alertname
|
|
||||||
# - target_matchers:
|
|
||||||
# - severity=info
|
|
||||||
# source_matchers:
|
|
||||||
# - severity=warning
|
|
||||||
# equal:
|
|
||||||
# - cluster
|
|
||||||
# - namespace
|
|
||||||
# - alertname
|
|
||||||
# - target_matchers:
|
|
||||||
# - severity=info
|
|
||||||
# source_matchers:
|
|
||||||
# - alertname=InfoInhibitor
|
|
||||||
# equal:
|
|
||||||
# - cluster
|
|
||||||
# - namespace
|
|
||||||
|
|
||||||
receivers:
|
receivers:
|
||||||
- name: blackhole
|
- name: outlook
|
||||||
# - name: "slack-monitoring"
|
email_configs:
|
||||||
# slack_configs:
|
- smarthost: 'mail.mms-support.de:465'
|
||||||
# - channel: "#channel"
|
auth_username: 'ipcei-cis-devfw@mms-support.de'
|
||||||
# send_resolved: true
|
auth_password:
|
||||||
# title: '{{ template "slack.monzo.title" . }}'
|
name: email-user-credentials
|
||||||
# icon_emoji: '{{ template "slack.monzo.icon_emoji" . }}'
|
key: connection-string
|
||||||
# color: '{{ template "slack.monzo.color" . }}'
|
from: '"IPCEI CIS DevFW" <ipcei-cis-devfw@mms-support.de>'
|
||||||
# text: '{{ template "slack.monzo.text" . }}'
|
to: 'f9f9953a.mg.telekom.de@de.teams.ms'
|
||||||
# actions:
|
headers:
|
||||||
# - type: button
|
subject: 'Grafana Mail Alerts'
|
||||||
# text: "Runbook :green_book:"
|
require_tls: false
|
||||||
# url: "{{ (index .Alerts 0).Annotations.runbook_url }}"
|
|
||||||
# - type: button
|
|
||||||
# text: "Query :mag:"
|
|
||||||
# url: "{{ (index .Alerts 0).GeneratorURL }}"
|
|
||||||
# - type: button
|
|
||||||
# text: "Dashboard :grafana:"
|
|
||||||
# url: "{{ (index .Alerts 0).Annotations.dashboard }}"
|
|
||||||
# - type: button
|
|
||||||
# text: "Silence :no_bell:"
|
|
||||||
# url: '{{ template "__alert_silence_link" . }}'
|
|
||||||
# - type: button
|
|
||||||
# text: '{{ template "slack.monzo.link_button_text" . }}'
|
|
||||||
# url: "{{ .CommonAnnotations.link_url }}"
|
|
||||||
# - name: slack-code-owners
|
|
||||||
# slack_configs:
|
|
||||||
# - channel: "#{{ .CommonLabels.code_owner_channel }}"
|
|
||||||
# send_resolved: true
|
|
||||||
# title: '{{ template "slack.monzo.title" . }}'
|
|
||||||
# icon_emoji: '{{ template "slack.monzo.icon_emoji" . }}'
|
|
||||||
# color: '{{ template "slack.monzo.color" . }}'
|
|
||||||
# text: '{{ template "slack.monzo.text" . }}'
|
|
||||||
# actions:
|
|
||||||
# - type: button
|
|
||||||
# text: "Runbook :green_book:"
|
|
||||||
# url: "{{ (index .Alerts 0).Annotations.runbook }}"
|
|
||||||
# - type: button
|
|
||||||
# text: "Query :mag:"
|
|
||||||
# url: "{{ (index .Alerts 0).GeneratorURL }}"
|
|
||||||
# - type: button
|
|
||||||
# text: "Dashboard :grafana:"
|
|
||||||
# url: "{{ (index .Alerts 0).Annotations.dashboard }}"
|
|
||||||
# - type: button
|
|
||||||
# text: "Silence :no_bell:"
|
|
||||||
# url: '{{ template "__alert_silence_link" . }}'
|
|
||||||
# - type: button
|
|
||||||
# text: '{{ template "slack.monzo.link_button_text" . }}'
|
|
||||||
# url: "{{ .CommonAnnotations.link_url }}"
|
|
||||||
#
|
|
||||||
# -- Better alert templates for [slack source](https://gist.github.com/milesbxf/e2744fc90e9c41b47aa47925f8ff6512)
|
# -- Better alert templates for [slack source](https://gist.github.com/milesbxf/e2744fc90e9c41b47aa47925f8ff6512)
|
||||||
monzoTemplate:
|
monzoTemplate:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue