将多个指标与唯一标签进行比较时指标不匹配
non matching metric while compairing mutiple metrics with unique lable
我有 2 个指标,例如:
metric1{lable1="a",label2,...}
metric1{lable1="b",label2,...}
metric2{lable1="a",label2,...}
预期结果:
metric1{label1="b"}
因为 metric2
中的匹配标签不存在。
What is PromQL for the above expected result?
metric1 unless metric2
?
或者,如果您只想匹配一部分标签,metric1 unless on(label1, label2) metric2
。
我有 2 个指标,例如:
metric1{lable1="a",label2,...}
metric1{lable1="b",label2,...}
metric2{lable1="a",label2,...}
预期结果:
metric1{label1="b"}
因为 metric2
中的匹配标签不存在。
What is PromQL for the above expected result?
metric1 unless metric2
?
或者,如果您只想匹配一部分标签,metric1 unless on(label1, label2) metric2
。