feat(monitoring): align storage to live pvc, add loki datasource and alerts
Match grafana/alertmanager storageClass to live PVCs to avoid immutable-field failures. Add Loki datasource and LokiDown/AlloyDown alerts.
This commit is contained in:
1 parent
34c33697bb
commit
c98ea8b957
3 files changed
+34
-6
No files matched your search
@@ -14,8 +14,11 @@ grafana:
|
||||
|
||||
persistence:
|
||||
enabled: true
|
||||
storageClassName: local-path-retain
|
||||
size: 20Gi
|
||||
# Matches live PVC (10Gi/local-path). Retain migration is a separate task
|
||||
# with data migration (see storage-audit doc); do NOT change SC/size here
|
||||
# without migrating, helm upgrade fails on immutable PVC fields.
|
||||
storageClassName: local-path
|
||||
size: 10Gi
|
||||
|
||||
ingress:
|
||||
enabled: false
|
||||
@@ -23,6 +26,12 @@ grafana:
|
||||
service:
|
||||
port: 80
|
||||
|
||||
additionalDataSources:
|
||||
- name: Loki
|
||||
type: loki
|
||||
url: http://loki-gateway.prometheus.svc.cluster.local
|
||||
access: proxy
|
||||
|
||||
prometheus:
|
||||
prometheusSpec:
|
||||
retention: 60d
|
||||
@@ -30,7 +39,8 @@ prometheus:
|
||||
storageSpec:
|
||||
volumeClaimTemplate:
|
||||
spec:
|
||||
storageClassName: "local-path-retain"
|
||||
# Matches live PVC, see note on grafana.persistence above.
|
||||
storageClassName: "local-path"
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
@@ -48,12 +58,13 @@ alertmanager:
|
||||
storage:
|
||||
volumeClaimTemplate:
|
||||
spec:
|
||||
storageClassName: local-path-retain
|
||||
# Matches live PVC (20Gi), see note on grafana.persistence above.
|
||||
storageClassName: local-path
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 10Gi
|
||||
storage: 20Gi
|
||||
|
||||
defaultRules:
|
||||
disabled:
|
||||
|
||||
Reference in new issue
Block a user