feat(platform): monitoring via ArgoCD (Helm) + grafana SealedSecret

This commit is contained in:
ATM Platform
2026-06-16 20:28:45 +00:00
parent 73184e1d73
commit 5f0caf144c
2 changed files with 88 additions and 0 deletions
+72
View File
@@ -0,0 +1,72 @@
# ArgoCD Application: kube-prometheus-stack gerenciado por GitOps (source = Helm repo, versao fixada)
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: 86.2.3
helm:
values: |
alertmanager:
enabled: false
grafana:
admin:
existingSecret: grafana-admin
userKey: admin-user
passwordKey: admin-password
defaultDashboardsTimezone: America/Sao_Paulo
ingress:
enabled: true
ingressClassName: traefik
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
traefik.ingress.kubernetes.io/router.middlewares: monitoring-redirect-https@kubernetescrd
hosts:
- grafana.187.77.37.184.nip.io
tls:
- secretName: grafana-tls
hosts:
- grafana.187.77.37.184.nip.io
resources:
requests:
cpu: 100m
memory: 256Mi
limits:
memory: 512Mi
prometheus:
prometheusSpec:
retention: 7d
resources:
requests:
cpu: 200m
memory: 512Mi
limits:
memory: 1536Mi
storageSpec:
volumeClaimTemplate:
spec:
storageClassName: local-path
accessModes: [ReadWriteOnce]
resources:
requests:
storage: 10Gi
prometheusOperator:
resources:
requests:
cpu: 50m
memory: 128Mi
destination:
server: https://kubernetes.default.svc
namespace: monitoring
syncPolicy:
automated:
prune: false
selfHeal: true
syncOptions:
- ServerSideApply=true
- CreateNamespace=true