Open
Description
Description
It would be extremely useful to have a command that identifies overlapping monitoring configurations in the cluster. This feature would help prevent redundant or conflicting monitoring setups by detecting scenarios where multiple monitoring objects select the same resources.
Examples of Overlaps:
- ServiceMonitors: Two or more
ServiceMonitor
objects selecting the same service and port. - PodMonitors: Two or more
PodMonitor
objects targeting the same set of pods and ports. - Mixed Overlaps: A
ServiceMonitor
and aPodMonitor
that, in the end, select the same pods, potentially through indirect label selection.
Use Case
This functionality would streamline troubleshooting and improve the efficiency of monitoring configurations by identifying and resolving potential conflicts proactively.
Proposed Implementation
Introduce a command or utility to:
- Analyze and compare label selectors in monitoring resources.
- Report overlaps in a clear, actionable format.