【发布时间】:2018-04-09 00:57:14
【问题描述】:
碳 1.1.x added the feature for tagging series。我试图通过以下方式为系列添加标签:
curl -vv -X POST "http://10.x.x.x:8080/tags/tagSeries" --data-urlencode 'path=qa-dev.stats.UpdateStats.responses.OK.calls.mean_rate;env=qa-dev'
如果我这样做:curl -vv "http://10.x.x.x:8080/tags/findSeries?pretty=1&expr=env=qa-dev",我会得到我期望的输出:
[
"qa-dev.stats.UpdateStats.responses.OK.calls.mean_rate;env=qa-dev"
* Connection #0 to host 10.19.118.17 left intact
]
但是,如果我尝试通过我的渲染器使用 aliasByTags 轮询这个系列,标签不存在:
http://internal.graphite.abc.com/render/?target=aliasByTags(qa-dev.stats.UpdateStats.responses.OK.calls.mean_rate,%20%27env%27)&from=-6h&until=now&format=json&maxDataPoints=1440
上面会拉取数据点,但是返回数据末尾唯一表示的标签是名称:
"tags": {"name": "qa-dev.stats.UpdateStats.responses.OK.calls.mean_rate"}。
我希望在标签列表中看到env=qa-dev,但事实并非如此。
我是不是做错了什么?
【问题讨论】:
标签: time-series metrics graphite graphite-carbon