fix(monitoring): o canal de e-mail vai no ROTEAMENTO RAIZ do Alertmanager, nao num AlertmanagerConfig por namespace
This commit is contained in:
@@ -1,37 +0,0 @@
|
||||
# =============================================================================
|
||||
# O canal do Alertmanager: e-mail, pelo SMTP que ja existe.
|
||||
#
|
||||
# Decisao do dono em 2026-09-26: "Email por enquanto". O secret
|
||||
# `smtp-credentials` precisa estar NESTE namespace (monitoring) — o Operator
|
||||
# so le Secret referenciado pelo AlertmanagerConfig no mesmo namespace dele.
|
||||
#
|
||||
# O `release: monitoring` NAO E ENFEITE: sem ele o Alertmanager (selector
|
||||
# `alertmanagerConfigSelector: matchLabels: release: monitoring`) ignora este
|
||||
# arquivo em silencio.
|
||||
# =============================================================================
|
||||
apiVersion: monitoring.coreos.com/v1alpha1
|
||||
kind: AlertmanagerConfig
|
||||
metadata:
|
||||
name: canal-email
|
||||
namespace: monitoring
|
||||
labels:
|
||||
release: monitoring
|
||||
spec:
|
||||
route:
|
||||
receiver: email-dono
|
||||
groupBy: [alertname, namespace]
|
||||
groupWait: 30s
|
||||
groupInterval: 5m
|
||||
repeatInterval: 12h
|
||||
receivers:
|
||||
- name: email-dono
|
||||
emailConfigs:
|
||||
- to: "carlosfernandes.3@gmail.com"
|
||||
from: "nao-responda@athleticmap.com"
|
||||
smarthost: "smtp.hostinger.com:587"
|
||||
authUsername: "nao-responda@athleticmap.com"
|
||||
authPassword:
|
||||
name: smtp-credentials
|
||||
key: senha
|
||||
requireTLS: true
|
||||
sendResolved: true
|
||||
Reference in New Issue
Block a user