我正在使用node-metrics包发布librato指标,但不知道如何向指标添加标签。我尝试了下面的代码,但它不能工作。它很好地发布了指标,但我没有看到任何附加到指标的标签,如下所示:https://www.librato.com/docs/kb/faq/glossary/whats_a_tag/
代码:
client.post("/metrics", {
gauges: [
{name: "NameOfMetrics", value: 55, tag: "tag1"}
],
}, function(err, response) {
if (err) {
console.log("ERROR: in publishing metrics - " + err.message);
}
});发布于 2019-03-06 14:21:21
发现我的账号不支持标签,但支持源属性过滤指标:https://www.librato.com/docs/kb/faq/account_questions/tags_or_sources/
https://stackoverflow.com/questions/55016363
复制相似问题