【问题标题】:How to access Graphite RAW data in json or any other format?如何以 json 或任何其他格式访问 Graphite RAW 数据?
【发布时间】: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 中没有可用数据!

请帮忙。

我期待仪表板中的值和数据正确,但那里没有可用的数据。

【问题讨论】:

    标签: grafana graphite


    【解决方案1】:

    在.wsp 文件上使用whisper-dump.py,或者直接访问graphite 的api。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-09-12
      • 1970-01-01
      • 2018-05-06
      • 2012-07-26
      • 2013-04-26
      • 2021-07-23
      相关资源
      最近更新 更多