Arista LANZ 消费者输入插件
此服务插件通过在交换机的管理 IP 上接收 TCP(通常通过端口 50001)上的数据流,从 Arista Networks 的延迟分析器 (LANZ) 消费消息。
您需要配置 LANZ 并启用流式传输 LANZ 数据,有关更多详细信息,请参阅文档。
引入于: Telegraf v1.14.0 标签: network 操作系统支持: all
服务输入
此插件是服务输入。普通插件收集由 interval 设置确定的指标。服务插件启动一个服务来监听并等待指标或事件发生。服务插件与普通插件的两个主要区别是:
- 全局或插件特定的
interval设置可能不适用 --test、--test-wait和--once的 CLI 选项可能不会为此插件生成输出
全局配置选项
插件支持其他全局和插件配置设置,用于修改指标、标签和字段,创建别名以及配置插件顺序等任务。更多详情请参阅 CONFIGURATION.md。
配置
# Read metrics off Arista LANZ, via socket
[[inputs.lanz]]
## URL to Arista LANZ endpoint
servers = [
"tcp://switch1.int.example.com:50001",
"tcp://switch2.int.example.com:50001",
]Metrics
有关指标的更多详细信息,请参阅 协议缓冲区定义。
lanz_congestion_record
- 标签 (tags)
- intf_name
- switch_id
- port_id
- entry_type
- traffic_class
- fabric_peer_intf_name
- source
- port
- 字段 (fields)
- timestamp (整数)
- queue_size (整数)
- time_of_max_qlen (整数)
- tx_latency (整数)
- q_drop_count (整数)
- 标签 (tags)
lanz_global_buffer_usage_record
- 标签 (tags)
- entry_type
- source
- port
- 字段 (fields)
- timestamp (整数)
- buffer_size (整数)
- duration (整数)
- 标签 (tags)
示例查询
获取所有交换机上所有接口过去一小时内的最大 tx_latency。
SELECT max("tx_latency") AS "max_tx_latency" FROM "congestion_record" WHERE time > now() - 1h GROUP BY time(10s), "hostname", "intf_name"获取所有交换机上所有接口过去一小时内的最大 tx_latency。
SELECT max("queue_size") AS "max_queue_size" FROM "congestion_record" WHERE time > now() - 1h GROUP BY time(10s), "hostname", "intf_name"获取所有交换机过去一小时内的最大 buffer_size。
SELECT max("buffer_size") AS "max_buffer_size" FROM "global_buffer_usage_record" WHERE time > now() - 1h GROUP BY time(10s), "hostname"示例输出
lanz_global_buffer_usage_record,entry_type=2,host=telegraf.int.example.com,port=50001,source=switch01.int.example.com timestamp=158334105824919i,buffer_size=505i,duration=0i 1583341058300643815
lanz_congestion_record,entry_type=2,host=telegraf.int.example.com,intf_name=Ethernet36,port=50001,port_id=61,source=switch01.int.example.com,switch_id=0,traffic_class=1 time_of_max_qlen=0i,tx_latency=564480i,q_drop_count=0i,timestamp=158334105824919i,queue_size=225i 1583341058300636045
lanz_global_buffer_usage_record,entry_type=2,host=telegraf.int.example.com,port=50001,source=switch01.int.example.com timestamp=158334105824919i,buffer_size=589i,duration=0i 1583341058300457464
lanz_congestion_record,entry_type=1,host=telegraf.int.example.com,intf_name=Ethernet36,port=50001,port_id=61,source=switch01.int.example.com,switch_id=0,traffic_class=1 q_drop_count=0i,timestamp=158334105824919i,queue_size=232i,time_of_max_qlen=0i,tx_latency=584640i 1583341058300450302此页面是否有帮助?
感谢您的反馈!
支持和反馈
感谢您成为我们社区的一员!我们欢迎并鼓励您对 Telegraf 和本文档提出反馈和 bug 报告。要获取支持,请使用以下资源
具有年度合同或支持合同的客户可以 联系 InfluxData 支持。