Skip to content

[Bug]: KubeQuota alerts can have duplicate seriesΒ #1073

@skl

Description

@skl

What happened?

Affects the following alerts:

  1. KubeQuotaAlmostFull
  2. KubeQuotaFullyUsed
  3. KubeQuotaExceeded

Found during testing with duplicate KSM installation on GKE:

found duplicate series for the match group

{cluster="duplicate", namespace="gke-managed-system", resource="pods", resourcequota="gcp-critical-pods"}

on the right hand-side of the operation:

[
  {__name__="kube_resourcequota", cluster="duplicate", instance="grafana-k8s-monitoring-kube-state-metrics.monitoring.svc:8080", job="integrations/kubernetes/kube-state-metrics2", namespace="gke-managed-system", resource="pods", resourcequota="gcp-critical-pods", type="hard"},
  {__name__="kube_resourcequota", cluster="duplicate", instance="grafana-k8s-monitoring-kube-state-metrics.monitoring.svc:8080", job="integrations/kubernetes/kube-state-metrics", namespace="gke-managed-system", resource="pods", resourcequota="gcp-critical-pods", type="hard"}
];

many-to-many matching not allowed: matching labels must be unique on one side

Please provide any helpful snippets.

What parts of the codebase are affected?

Alerts

I agree to the following terms:

  • I agree to follow this project's Code of Conduct.
  • I have filled out all the required information above to the best of my ability.
  • I have searched the issues of this repository and believe that this is not a duplicate.
  • I have confirmed this bug exists in the default branch of the repository, as of the latest commit at the time of submission.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingkeepaliveUse to prevent automatic closing

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions