【发布时间】:2019-06-23 09:06:54
【问题描述】:
我在 prometheus 中有一个计数器指标。我想动态添加标签,例如如果我的请求来自 http://abc123.com/{p1} ,我希望我的 custom_metric_name 存储 {statuscode=200, p1=p1Value , host="abc123"} 并且如果请求来自 http://def123.com/{p2} 。我希望 custom_metric_name 存储 {statuscode=200, p2=p2Value , host="def123"} 但 custom_metric_name 将由两者共享指标。
我正在尝试仍然无法得到答案
【问题讨论】:
标签: go label prometheus metrics dynamically-generated