Bond 输入插件
此插件使用 /proc/net/bonding/* 文件收集网络 bond 接口及其从属接口的指标。
引入于: Telegraf v1.5.0 标签: system 操作系统支持: all
全局配置选项
插件支持其他全局和插件配置设置,用于修改指标、标签和字段,创建别名以及配置插件顺序等任务。更多详情请参阅 CONFIGURATION.md。
配置
# Collect bond interface status, slaves statuses and failures count
[[inputs.bond]]
## Sets 'proc' directory path
## If not specified, then default is /proc
# host_proc = "/proc"
## Sets 'sys' directory path
## If not specified, then default is /sys
# host_sys = "/sys"
## By default, telegraf gather stats for all bond interfaces
## Setting interfaces will restrict the stats to the specified
## bond interfaces.
# bond_interfaces = ["bond0"]
## Tries to collect additional bond details from /sys/class/net/{bond}
## currently only useful for LACP (mode 4) bonds
# collect_sys_details = falseMetrics
bond
- 标签 (tags)
bond: bond 的名称
- 字段 (fields)
active_slave: active-backup 模式下当前活动的从属接口status: 接口的状态 (0: down , 1: up)
- 标签 (tags)
bond_slave
- 标签 (tags)
bond: bond 的名称interface: 网络接口的名称
- 字段 (fields)
failures: bond 从属接口的故障次数status: 接口的状态 (0: down , 1: up)count: 连接到 bond 的从属接口数量actor_churned (for LACP bonds): LACP bond 的本地端闪烁次数partner_churned (for LACP bonds): LACP bond 的远程端闪烁次数total_churned (for LACP bonds): 所有闪烁事件的总计数
- 标签 (tags)
bond_sys
- 标签 (tags)
bond: bond 的名称mode: bonding 模式的名称
- 字段 (fields)
slave_count: 从属接口的数量ad_port_count: 端口数量
- 标签 (tags)
示例输出
配置
[[inputs.bond]]
## Sets 'proc' directory path
## If not specified, then default is /proc
host_proc = "/proc"
## By default, telegraf gather stats for all bond interfaces
## Setting interfaces will restrict the stats to the specified
## bond interfaces.
bond_interfaces = ["bond0", "bond1"]运行
telegraf --config telegraf.conf --input-filter bond --test输出
bond,bond=bond1,host=local active_slave="eth0",status=1i 1509704525000000000
bond_slave,bond=bond1,interface=eth0,host=local status=1i,failures=0i 1509704525000000000
bond_slave,host=local,bond=bond1,interface=eth1 status=1i,failures=0i 1509704525000000000
bond_slave,host=local,bond=bond1 count=2i 1509704525000000000
bond,bond=bond0,host=isvetlov-mac.local status=1i 1509704525000000000
bond_slave,bond=bond0,interface=eth1,host=local status=1i,failures=0i 1509704525000000000
bond_slave,bond=bond0,interface=eth2,host=local status=1i,failures=0i 1509704525000000000
bond_slave,bond=bond0,host=local count=2i 1509704525000000000此页面是否有帮助?
感谢您的反馈!
支持和反馈
感谢您成为我们社区的一员!我们欢迎并鼓励您对 Telegraf 和本文档提出反馈和 bug 报告。要获取支持,请使用以下资源
具有年度合同或支持合同的客户可以 联系 InfluxData 支持。