Skip to content

Command to Detect Overlapping Monitor Configurations #47

Open
@nicolastakashi

Description

@nicolastakashi

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions