Skip to content

[MONIT-4066] Enable Prometheus to Monitor Rules Across All Namespaces

Guillermo Facundo Colunga requested to merge gfacundo/monit4066 into master

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 and ruleNamespaceSelector to {}, which allows Prometheus to listen to PrometheusRule resources from all namespaces.

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

Merge request reports

Loading