概要描述
Aquila 9.3.5 版本,服务通用告警规则组 – 服务健康检测 – 指标数据 进入, Prometheus 执行报错 Error executing query: found duplicate series for the match group {roleType="KUNTABLET", serviceId="173", serviceName="kundb3-ENT"} on the right hand-side of the operation: [{__name__="service_role_number", instance="172.22.23.1:8180", job="manager", roleGroupId="16", roleGroupName="shards", roleType="KUNTABLET", roleTypeFriendlyName="KunTablet", serviceId="173", serviceName="kundb3-ENT"}, {__name__="service_role_number", instance="172.22.23.1:8180", job="manager", roleGroupId="15", roleGroupName="shards", roleType="KUNTABLET", roleTypeFriendlyName="KunTablet", serviceId="173", serviceName="kundb3-ENT"}];many-to-many matching not allowed: matching labels must be unique on one side
详细说明
问题说明
kundb3组件是 3.2.3版本,分布式,部署了多个shard,在manager数据库中能够看到,同一个roleType、serviceId、sericeName下,有2个实例。
解决方案:
修改指标sql,加入红框这部分
内部跟踪JIRA: AQ-843