diff --git a/charts/rancher-monitoring/my-values/values-prod.yaml b/charts/rancher-monitoring/my-values/values-prod.yaml index d62ed00..a5845b2 100644 --- a/charts/rancher-monitoring/my-values/values-prod.yaml +++ b/charts/rancher-monitoring/my-values/values-prod.yaml @@ -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: []