Collectd 输入数据格式
使用 collectd
输入数据格式来解析 collectd 二进制网络协议 数据到 Telegraf 指标中。为 host、instance、type 和 type instance 创建标签。所有 collectd 值都作为 float64 字段添加。
有关二进制网络协议的更多信息,请参阅此处。
您可以使用解析器选项控制加密设置。创建一个身份验证文件并将 collectd_auth_file
设置为文件路径,然后在 collectd_security_level
中设置所需的安全级别。
包括客户端设置在内的更多信息可以在此处找到。
您还可以使用 collectd_typesdb
更改 typesdb 的路径或添加其他 typesdb。
配置
[[inputs.socket_listener]]
service_address = "udp://:25826"
## Data format to consume.
## Each data format has its own unique set of configuration options, read
## more about them here:
## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
data_format = "collectd"
## Authentication file for cryptographic security levels
collectd_auth_file = "/etc/collectd/auth_file"
## One of none (default), sign, or encrypt
collectd_security_level = "encrypt"
## Path of to TypesDB specifications
collectd_typesdb = ["/usr/share/collectd/types.db"]
## Multi-value plugins can be handled two ways.
## "split" will parse and store the multi-value plugin data into separate measurements
## "join" will parse and store the multi-value plugin as a single multi-value measurement.
## "split" is the default behavior for backward compatibility with previous versions of InfluxDB.
collectd_parse_multivalue = "split"
输出示例
memory,type=memory,type_instance=buffered value=2520051712 1560455990829955922
memory,type=memory,type_instance=used value=3710791680 1560455990829955922
memory,type=memory,type_instance=buffered value=2520047616 1560455980830417318
memory,type=memory,type_instance=cached value=9472626688 1560455980830417318
memory,type=memory,type_instance=slab_recl value=2088894464 1560455980830417318
memory,type=memory,type_instance=slab_unrecl value=146984960 1560455980830417318
memory,type=memory,type_instance=free value=2978258944 1560455980830417318
memory,type=memory,type_instance=used value=3707047936 1560455980830417318
此页内容对您有帮助吗?
感谢您的反馈!