[MONIT-4066] Enable Prometheus to Monitor Rules Across All Namespaces
Summary
This merge request configures Prometheus to listen for PrometheusRule
objects defined in any namespace within the cluster. By setting both ruleSelector
and ruleNamespaceSelector
to empty dictionaries, we enable Prometheus to capture rules across all namespaces, expanding the monitoring scope.
Details
-
Files modified:
templates/prometheus/prometheus.yaml
-
Changes made:
- Set
ruleSelector
andruleNamespaceSelector
to{}
, which allows Prometheus to listen toPrometheusRule
resources from all namespaces.
- Set
Impact
- Prometheus instances deployed through the monitoring chart will now pick up and apply rules across the entire cluster.
- This change enhances monitoring coverage by ensuring no
PrometheusRule
objects are omitted due to namespace restrictions.
JIRA Reference
- MONIT-4066
Edited by Guillermo Facundo Colunga