Files
monitoring/argocd/applications/monitoring.yaml
Hoang Nguyen 423c4ab11d first commit
2026-05-05 22:33:13 +02:00

61 lines
1.8 KiB
YAML

apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: monitoring
namespace: argocd
spec:
project: default
source:
repoURL: https://prometheus-community.github.io/helm-charts
chart: kube-prometheus-stack
targetRevision: 58.0.0
helm:
values: |
# Deaktiviere die automatische Installation der CRDs durch das Helm-Chart
# Das Helm-Chart hat eine Option dafür:
prometheusOperator:
createCustomResource: false
alertmanager:
config:
global:
smtp_smarthost: 'smtp.dein-provider.de:587'
smtp_from: 'alertmanager@dein-cluster.de'
smtp_auth_username: 'dein-user'
smtp_auth_password_file: '/etc/alertmanager/secrets/smtp_password'
receivers:
- name: 'teams-channel'
webhook_configs:
- url: 'https://webhook.office.com/webhookb2/...'
- name: 'email-admin'
email_configs:
- to: 'admin@example.com'
send_resolved: true
- name: 'sms-service'
webhook_configs:
- url: 'https://api.twilio.com/...'
http_config:
basic_auth:
username: 'AC_SID'
password_file: '/etc/alertmanager/secrets/twilio_token'
route:
receiver: 'teams-channel'
routes:
- receiver: 'email-admin'
match:
severity: critical
alertmanagerSpec:
secrets:
- alertmanager-secrets
destination:
server: 'https://kubernetes.default.svc'
namespace: monitoring
syncPolicy:
automated:
prune: false
selfHeel: false
syncOptions:
- CreateNamespace=true
- ServerSideApply=true
dependsOn:
- name: monitoring-crds