38 lines
1.3 KiB
YAML
38 lines
1.3 KiB
YAML
# =============================================================================
|
|
# 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
|