使用手册 - LVS监控

优质
小牛编辑
130浏览
2023-12-01

lvs-metrics是一个基于open-falcon的LVS监控插件,通过这个插件,结合open-falcon agent/transfer,可以采集LVS服务状态,并将采集信息自动上报给open-falcon服务端

主要功能

通过google开源的ipvs/netlink库及proc下文件采集lvs的监控信息,包括所有VIP的连接数(活跃/非活跃)/LVS主机的连接数(活跃/非活跃).进出数据包数/字节数.

对应用程序代码无侵入,几乎不占用系统资源。

采集指标

CountersTypeNotes
lvs.in.bytesGUAGEnetwork in bytes per host
lvs.out.bytesGUAGEnetwork out bytes per host
lvs.in.packetsGUAGEnetwork in packets per host
lvs.out.packetsGUAGEnetwork out packets per host
lvs.total.connsGUAGElvs total connections per vip now
lvs.active.connGUAGElvs active connections per vip now
lvs.inact.connGUAGElvs inactive connections per vip now
lvs.realserver.numGUAGElvs live realserver num per vip now
lvs.vip.connsCOUNTERlvs conns counter from service start per vip
lvs.vip.inbytesCOUNTERlvs inbytes counter from service start per vip
lvs.vip.outbytesCOUNTERlvs outpkts counter from service start per vip
lvs.vip.inpktsCOUNTERlvs inpkts counter from service start per vip
lvs.vip.outpktsCOUNTERlvs outpkts counter from service start per vip

使用帮助

详细的使用方法常见:lvs-metrics