首页 > 解决方案 > Prometheus:执行查询时出错:找到匹配组的重复系列

问题描述

我正在尝试使用 prometheus 完成失败的工作,并使用以下表达式在 grafana 上显示:

  kube_job_status_failed {}* ON(cronjob) GROUP_RIGHT() kube_cronjob_labels

但我收到此错误:

Error executing query: found duplicate series for the match group {} on the left hand-side of the operation: [{__name__="kube_job_status_failed", instance="kube-state-metrics.kube-system.svc.cluster.local:8080", job="kube-state-metrics", job_name="demo-status-1629059700", namespace="default"}, {__name__="kube_job_status_failed", instance="kube-state-metrics.kube-system.svc.cluster.local:8080", job="kube-state-metrics", job_name="demo-status-1624613400", namespace="default"}];many-to-many matching not allowed: matching labels must be unique on one side

我的查询有什么问题?

标签: kubernetesprometheusgrafana

解决方案


推荐阅读