kubernetes - 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
我的查询有什么问题?
解决方案
推荐阅读
- r - 按日期排序的直方图
- excel - 循环遍历从 1 到 31 的列
- docker - GitLab Docker Runner 重用已安装的软件层
- c# - C# - 从客户端检查 TCP/IP 套接字状态
- node.js - 由于 MongoDB,Heroku 中的应用程序错误?
- c - pthread_create 我应该使用 & 还是不使用?(C)
- wso2 - 在 WSO IS 5.9 中使用 JDBCUserStoreManager 的辅助自定义用户存储
- java - 基于配置文件的Spring数据中实体的附加过滤器
- electron - 将使用 Electron 构建的 APPX 发布到 Windows Store 和 Desktop Bridge 程序
- swift - 'characters' 不可用:请直接使用字符串。我有这个问题