【问题标题】:Pass data from influxdb to graphite将数据从 influxdb 传递到石墨
【发布时间】:2019-10-28 16:15:39
【问题描述】:

我需要将指标数据从 influxdb 传递到石墨。

我目前正在 docker 上将模拟数据设置为石墨。所以现在,我想与 influxdb 集成,因为石墨可以对数据执行功能,例如动态添加和减去值以在图表中显示它们

【问题讨论】:

    标签: grafana influxdb graphite


    【解决方案1】:

    如果您的问题是如何将 InfluxDb 与石墨集成,请转到 influxdb.conf 文件。如下图所示,加入石墨特有的部分。如果你在Linux机器上部署了InfluxDb,你可以在/etc/influxdb这个路径下找到文件。

    ###
    ### [[graphite]]
    ###
    ### Controls one or many listeners for Graphite data.
    ###
    
    [[graphite]]
      enabled = false
      # database = "graphite"
      # bind-address = ":2003"
      # protocol = "tcp"
      # consistency-level = "one"
    
      # These next lines control how batching works. You should have this enabled
      # otherwise you could get dropped metrics or poor performance. Batching
      # will buffer points in memory if you have many coming in.
    
      # batch-size = 5000 # will flush if this many points get buffered
      # batch-pending = 10 # number of batches that may be pending in memory
      # batch-timeout = "1s" # will flush at least this often even if we haven't hit buffer limit
      # udp-read-buffer = 0 # UDP Read buffer size, 0 means OS default. UDP listener will fail if set above OS max.
    
      ### This string joins multiple matching 'measurement' values providing more control over the final measurement name.
      # separator = "."
    
      ### Default tags that will be added to all metrics.  These can be overridden at the template level
      ### or by tags extracted from metric
      # tags = ["region=us-east", "zone=1c"]
    
      ### Each template line requires a template pattern.  It can have an optional
      ### filter before the template and separated by spaces.  It can also have optional extra
      ### tags following the template.  Multiple tags should be separated by commas and no spaces
      ### similar to the line protocol format.  There can be only one default template.
      # templates = [
      #   "*.app env.service.resource.measurement",
      #   # Default template
      #   "server.*",
      # ]
    
    ###
    

    【讨论】:

    • 是的,我是。谢谢,我设法在启用石墨的情况下运行 influx db。但现在我不明白如何将整个东西连接到 grafana。我应该将它用作 influxdb 数据源还是石墨数据源?
    • @PamudithaNavaratne 如果有帮助,请接受答案并投票。如何将它与 Graphana 一起使用是一个不同的问题,所以请发布一个单独的问题。有人知道 Graphana 会回答你的问题
    • 我解决了这个问题。influxgraph 需要一个石墨数据库,并且正在监听 dockerhost,而不是 localhost。所以我不得不把它们都放在码头上。再次感谢
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多