【发布时间】:2019-11-17 22:34:07
【问题描述】:
我已经使用graphite-tcp 为grafana 仪表板生成了一些模拟数据,但在Grafana 仪表板中仍然不可用。我已经在 grafana 中更新了 dashboard.json。我在节点 js 石墨 tcp 中收到成功消息,同时加热 IP 和 PORT 以及公制加时间戳。有什么方法可以检查石墨原始数据吗?
var graphite = require('graphite-tcp');
const graphiteConfiguration = {
host: HOST,
port: PORT,
family: FAMILY,
prefix: PREFIX,
suffix: SUFFIX,
verbose: false,
interval: 60000,
callback: (_error, metricsSent) => {
console.log('Metrics sent\n'+ metricsSent)
}
}
var metricConf = graphite.createClient(graphiteConfiguration);
metricConf.add(metric.metricName, Math.floor(Math.random() * Math.floor(10)))
在回调中,我将 Metrics Sent Message 作为成功。
但 Grafana 中没有可用数据!
请帮忙。
我期待仪表板中的值和数据正确,但那里没有可用的数据。
【问题讨论】: