ZBLOG

node-export 查询网络丢包率

要查询网络丢包率,您需要使用 node-exporter 中的 node_network_receive_errs_totalnode_network_receive_packets_total 指标。

node_network_receive_errs_total 表示接收时出错的数据包数量,而 node_network_receive_packets_total 表示接收到的总数据包数量。因此,可以通过计算这两个指标之间的比例来获取网络丢包率:

1 - (node_network_receive_packets_total{device="eth0"} - node_network_receive_errs_total{device="eth0"}) / node_network_receive_packets_total{device="eth0"}

其中,device="eth0" 是用于筛选特定网卡(例如,您可能有多个网卡)。

您可以使用 Prometheus 的查询语言(PromQL)在 Grafana 中执行此查询,并将其添加到仪表板中以监视网络丢包率。

本站部分文章来源于网络,版权归原作者所有,如有侵权请联系站长删除。
转载请注明出处:https://golang.0voice.com/?id=604

分享:
扫描分享到社交APP
上一篇
下一篇
发表列表
游客 游客
此处应有掌声~
评论列表

还没有评论,快来说点什么吧~

联系我们

在线咨询: 点击这里给我发消息

微信号:3007537140

上班时间: 10:30-22:30

关注我们
x

注册

已经有帐号?