Query failed: many to many matching not allowed

31 views
Skip to first unread message

Anaka

unread,
Feb 11, 2023, 5:02:50 AM2/11/23
to Prometheus Users
HI,

I have a query like below:

container_memory_working_set_bytes{cluster="$cluster", container="my-container", namespace="my-namespace"} / on (pod) kube_pod_container_resource_requests{cluster="$cluster",namespace="my-namespace",container="my-container",resource="memory"}

this query failed and report an error like below, but per my understanding, they have different 'Pod' labels,
Has anyone dealt with this specific error and can you recommend something?

  
Unprocessable Entity: found duplicate series for the match group {} on the right hand-side of the operation: [{__name__="kube_pod_container_resource_requests", Cluster="my-cluster", Container="my-container", Instance="prometheus-collector-mdm-kube-state-metrics.mdm-monitoring.svc.cluster.local:8080", job="kube-state-metrics", Namespace="my-namespace", Node="node-vmss000001", Pod="pod-1-3-0", resource="Memory", uid="5fa53ada", unit="byte"}, {__name__="kube_pod_container_resource_requests", Cluster="my-cluster", Container="my-container", Instance="prometheus-collector-mdm-kube-state-metrics.mdm-monitoring.svc.cluster.local:8080", job="kube-state-metrics", Namespace="my-namespace", Node="node-vmss000001", Pod="pod-0-0-0", resource="Memory", uid="599c2321", unit="byte"}];many-to-many matching not allowed: matching labels must be unique on one side. 
Reply all
Reply to author
Forward
0 new messages