繁体   English   中英

无法从节点导出器指标中获取正确数量的打开文件描述符

[英]Not able to get correct number of Open File descriptor from node-exporter metrics

我们正在使用 node_exporter 版本 0.18.0

在 Grafana 节点导出器仪表板中,它仅显示节点导出器进程使用的打开文件描述符的数量,而不是该实例中操作系统使用的 FDS。

我们正在从 root 用户运行 node-exporter。

系统统计:

lsof | wc -l输出lsof | wc -l lsof | wc -l446732

打开文件 (-n) 400000

节点导出器指标:

node_filefd_allocated 3232

node_filefd_maximum 1.508219e+06

node_scrape_collector_duration_seconds{collector="filefd"} 4.4016e-05

process_max_fds 1024

process_open_fds 9

node_filefd_allocated是您想要的指标。

并非lsof列出的所有内容都在 Linux 上使用文件描述符,例如动态链接库。

我们正在从 root 用户运行 node-exporter。

节点导出器不需要 root。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM