Fix arrays
This commit is contained in:
parent
3f1c3634b2
commit
0bcd4a84fd
@ -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
|
||||
metricRelabelings: []
|
||||
alertmanager:
|
||||
endpoints:
|
||||
- port: web
|
||||
metricRelabelings: []
|
||||
grafana:
|
||||
endpoints:
|
||||
- port: service
|
||||
path: /metrics
|
||||
metricRelabelings: []
|
||||
coredns:
|
||||
endpoints:
|
||||
- port: metrics
|
||||
metricRelabelings: []
|
||||
fleetController:
|
||||
endpoints:
|
||||
- port: metrics
|
||||
metricRelabelings: []
|
||||
gitopsController:
|
||||
endpoints:
|
||||
- port: metrics
|
||||
metricRelabelings: []
|
||||
# מבטיח שה-ServiceMonitor של גרפנה לא ייצור null
|
||||
serviceMonitor:
|
||||
enabled: true
|
||||
metricRelabelings: []
|
||||
|
||||
alertmanager:
|
||||
# ServiceMonitor של אלרטמאנגר
|
||||
serviceMonitor:
|
||||
metricRelabelings: []
|
||||
|
||||
prometheusOperator:
|
||||
# ServiceMonitor של האופרייטור (rancher-monitoring-*-operator)
|
||||
serviceMonitor:
|
||||
metricRelabelings: []
|
||||
|
||||
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:
|
||||
serviceMonitor:
|
||||
enabled: true
|
||||
metricRelabelings: []
|
||||
gitopsController:
|
||||
serviceMonitor:
|
||||
enabled: true
|
||||
metricRelabelings: []
|
||||
|
||||
# לעיתים ה-chart מכיל ServiceMonitors נוספים; ערך גלובלי נפוץ
|
||||
# שחלק מהתבניות קוראות ממנו:
|
||||
serviceMonitor:
|
||||
metricRelabelings: []
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user