monitoring: add Grafana alloy and Prometheus kube-state-metrics

This commit is contained in:
Márcio Fernandes
2026-09-12 14:07:26 +00:00
parent c44dec8900
commit 719b906a53
14 changed files with 828 additions and 0 deletions
@@ -0,0 +1,30 @@
controller:
type: 'deployment'
nodeSelector:
kubernetes.io/hostname: casa-minion-01
alloy:
# https://grafana.com/docs/alloy/latest/collect/logs-in-kubernetes/
configMap:
create: false
name: alloy-kube-scraper
key: config.alloy
extraEnv:
- name: CLUSTER_NAME
value: casa
- name: ZONE
value: casa-vlan
- name: LOKI_URL
valueFrom:
secretKeyRef:
name: alloy-global
key: loki_url
- name: PROMETHEUS_URL
valueFrom:
secretKeyRef:
name: alloy-global
key: prometheus_url