Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command to Detect Overlapping Monitor Configurations #47

Open
nicolastakashi opened this issue Dec 9, 2024 · 1 comment
Open

Command to Detect Overlapping Monitor Configurations #47

nicolastakashi opened this issue Dec 9, 2024 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@nicolastakashi
Copy link
Collaborator

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:

  1. ServiceMonitors: Two or more ServiceMonitor objects selecting the same service and port.
  2. PodMonitors: Two or more PodMonitor objects targeting the same set of pods and ports.
  3. Mixed Overlaps: A ServiceMonitor and a PodMonitor 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.
@nicolastakashi nicolastakashi added enhancement New feature or request help wanted Extra attention is needed labels Dec 9, 2024
@heliapb
Copy link
Contributor

heliapb commented Dec 9, 2024

Hi @nicolastakashi I would like to work on this as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants