Reputation: 1794
I am using node-metrics
package for posting librato metrics and not able to figure out how to add tags to the metrics. I tried below code but it does not work. It posts the metrics fine but I do not see any tags attached to the metrics as shown here: https://www.librato.com/docs/kb/faq/glossary/whats_a_tag/
code:
client.post("/metrics", {
gauges: [
{name: "NameOfMetrics", value: 55, tag: "tag1"}
],
}, function(err, response) {
if (err) {
console.log("ERROR: in publishing metrics - " + err.message);
}
});
Upvotes: 0
Views: 29
Reputation: 1794
found out that my account does not support tags but it supports source attribute to filter metrics: https://www.librato.com/docs/kb/faq/account_questions/tags_or_sources/
Upvotes: 0