【问题标题】:graphite-api integration with influxdb石墨 api 与 influxdb 的集成
【发布时间】:2017-03-07 16:12:13
【问题描述】:

我已经安装了graphite-api 和influxdb (https://github.com/InfluxGraph/influxgraph) 指标存储在 influxdb 中(例如通过 collectd)。

但是,无法通过graphite-api 获取数据。配置为 8888 端口。http://localhost:8888/metrics/index.json 返回 ["null"]。

graphite-api..yaml config:

finders:
  - influxgraph.InfluxDBFinder

influxdb:
  db: graphite
  host: localhost
  port: 8086
  user: graphite
  pass: graphite
  ssl: false
  log_file: /var/log/influxgraph/influxgraph.log
  log_level: info
  templates:
  memcache:
      host: localhost
  memcache:
    host: localhost
  aggregation_functions:
    \.min$ : min
    \.max$ : max
    \.last$ : last
    \.sum$ : sum
  retention_policies:
    1800: 30m
    600: 10m
    300: default

【问题讨论】:

    标签: metrics graphite influxdb


    【解决方案1】:

    首先,metrics/index.json 是 Graphite-API 中的无操作 API 调用,毫不奇怪它不返回任何数据 :) 先尝试 metrics/find?query=*

    如果数据是通过 influx 本机协议写入的,则需要告诉 InfluxGraph 如何通过其模板配置将 influxdb 数据结构化为 Graphite 兼容格式。

    project's readmeWiki 上有几个示例说明如何执行此操作。

    这里没有显示数据在 influx 中的存储方式,因此无法显示示例配置。如果您在 influx 中使用带有模板的石墨服务,可以在 influxgraph 中使用相同的模板,per documentation.

    如果在没有模板的情况下使用 influxdb 的石墨服务,则在 InfluxGraph 中也不需要模板配置,但在这种情况下会降低可扩展性。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-11-14
      • 2019-10-28
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多