【发布时间】:2019-10-28 16:15:39
【问题描述】:
我需要将指标数据从 influxdb 传递到石墨。
我目前正在 docker 上将模拟数据设置为石墨。所以现在,我想与 influxdb 集成,因为石墨可以对数据执行功能,例如动态添加和减去值以在图表中显示它们
【问题讨论】:
我需要将指标数据从 influxdb 传递到石墨。
我目前正在 docker 上将模拟数据设置为石墨。所以现在,我想与 influxdb 集成,因为石墨可以对数据执行功能,例如动态添加和减去值以在图表中显示它们
【问题讨论】:
如果您的问题是如何将 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.*",
# ]
###
【讨论】: