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

rule error #38

Open
jr0dd opened this issue Jul 12, 2021 · 1 comment
Open

rule error #38

jr0dd opened this issue Jul 12, 2021 · 1 comment
Assignees

Comments

@jr0dd
Copy link

jr0dd commented Jul 12, 2021

I am getting errors with the 2nd rule for localpv. I believe it has to do with multiple pods that use the same pvc. I'm still pretty rough at writing rules or I would fix and send a pr.

Rule:

kube_persistentvolumeclaim_info unless (kube_persistentvolumeclaim_info
        * on(persistentvolumeclaim) group_left kube_pod_spec_volumes_persistentvolumeclaims_info)
        == 1

Error:

Error executing query: found duplicate series for the match group {persistentvolumeclaim="media"} on the right hand-side of the operation: [{__name__="kube_pod_spec_volumes_persistentvolumeclaims_info", container="kube-state-metrics", endpoint="http", instance="172.16.0.249:8080", job="kube-state-metrics", namespace="media", persistentvolumeclaim="media", pod="mkvtoolnix-844d557d49-499rx", service="kube-prometheus-stack-kube-state-metrics", volume="data"}, {__name__="kube_pod_spec_volumes_persistentvolumeclaims_info", container="kube-state-metrics", endpoint="http", instance="172.16.0.249:8080", job="kube-state-metrics", namespace="media", persistentvolumeclaim="media", pod="lidarr-6c86fc7f57-rpz95", service="kube-prometheus-stack-kube-state-metrics", volume="data"}];many-to-many matching not allowed: matching labels must be unique on one side
@avishnu
Copy link
Member

avishnu commented Sep 11, 2024

@abhilashshetty04 can you check if this is still relevant after the OpenEBS restructuring?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants