【发布时间】:2019-01-23 17:08:11
【问题描述】:
我想计算唯一标签值的数量。有点像
select count (distinct a) from hello_info
例如,如果我的指标“hello_info”有标签 a 和 b。我想计算唯一 a 的数量。对于 a = "1"、"2"、"3",这里的计数为 3。
hello_info(a="1", b="ddd")
hello_info(a="2", b="eee")
hello_info(a="1", b="fff")
hello_info(a="3", b="ggg")
【问题讨论】:
标签: grafana prometheus