簡體   English   中英

使用librato-metrics節點包為librato指標設置標簽屬性

[英]Setting tag property for librato metrics with librato-metrics node package

我正在使用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);
                }
            });

發現我的帳戶不支持標簽,但支持源屬性以過濾指標: https : //www.librato.com/docs/kb/faq/account_questions/tags_or_sources/

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM