Fix arrays

This commit is contained in:
dvirlabs 2025-10-10 16:26:01 +03:00
parent 3f1c3634b2
commit 0bcd4a84fd

View File

@ -21,6 +21,9 @@ prometheus:
enabled: true
name: prometheus-additional-scrape-configs
key: additional-scrape-configs.yaml
# מבטיח שה-ServiceMonitor של פרומתאוס לא יוצר null
serviceMonitor:
metricRelabelings: []
grafana:
persistence:
@ -61,39 +64,60 @@ grafana:
role_attribute_path: contains(groups[*], 'grafana-admins') && 'Admin' || 'Viewer'
allow_assign_grafana_admin: true
# === פאטצ' כדי למנוע null ב-ServiceMonitor ===
# אם ה-templates שלך בונים endpoints מה-values, זה יבטיח שתמיד יהיה מערך ריק.
serviceMonitors:
operator:
endpoints:
- port: metrics
metricRelabelings: []
prometheus:
endpoints:
- port: web
metricRelabelings: []
prometheusNodeExporter:
endpoints:
- port: metrics
# מבטיח שה-ServiceMonitor של גרפנה לא ייצור null
serviceMonitor:
enabled: true
metricRelabelings: []
alertmanager:
endpoints:
- port: web
# ServiceMonitor של אלרטמאנגר
serviceMonitor:
metricRelabelings: []
grafana:
endpoints:
- port: service
path: /metrics
prometheusOperator:
# ServiceMonitor של האופרייטור (rancher-monitoring-*-operator)
serviceMonitor:
metricRelabelings: []
coredns:
endpoints:
- port: metrics
prometheus-node-exporter:
# ServiceMonitor של הנוד אקספורטר
serviceMonitor:
metricRelabelings: []
# CoreDNS עשוי להיקרא chart-wise kubeDns או coreDns—מרפדים את שניהם.
kubeDns:
serviceMonitor:
metricRelabelings: []
coreDns:
serviceMonitor:
metricRelabelings: []
# רכיבי קוברנטיס נוספים (אם פעילים אצלך—לא מזיק להגדיר [])
kubeControllerManager:
serviceMonitor:
metricRelabelings: []
kubeScheduler:
serviceMonitor:
metricRelabelings: []
kubeEtcd:
serviceMonitor:
metricRelabelings: []
kubeProxy:
serviceMonitor:
metricRelabelings: []
# בקרי Rancher אופייניים (Fleet/GitOps) — שמות עשויים להשתנות בין גרסאות;
# הערכים כאן בטוחים: אם התבניות מתייחסות אליהם, יילקחו [], ואם לא—ייבלעו.
fleetController:
endpoints:
- port: metrics
serviceMonitor:
enabled: true
metricRelabelings: []
gitopsController:
endpoints:
- port: metrics
serviceMonitor:
enabled: true
metricRelabelings: []
# לעיתים ה-chart מכיל ServiceMonitors נוספים; ערך גלובלי נפוץ
# שחלק מהתבניות קוראות ממנו:
serviceMonitor:
metricRelabelings: []