system.fs.file_handles Metrics from DataDog Agent

Name

  • system.fs.file_handles.in_use
  • The amount of used allocated file handles over the system max.
  • fraction (unit)
  • system.fs.file_handles.max
  • The max amount of file handles over the system max.
  • handles (unit)
  • system.fs.file_handles.used
  • The amount of used file handles over the system.
  • handles
  • system.fs.file_handles.allocated
  • The amount of allocated file handles over the system.
  • system.fs.file_handles.allocated_unused
  • The amount of unused file handles over the system.

计算公式

# handle_metrics = [23104, 0, 3040400]
# https://www.kernel.org/doc/Documentation/sysctl/fs.txt
# allocated_fh = float(handle_metrics[0])
# allocated_unused_fh = float(handle_metrics[1])
# max_fh = float(handle_metrics[2])
# num_used = allocated_fh - allocated_unused_fh
system.fs.file_handles.allocated = allocated_fh
system.fs.file_handles.allocated_unused = allocated_unused_fh
system.fs.file_handles.in_use = num_used / max_fh
system.fs.file_handles.used = num_used
system.fs.file_handles.max = max_fh

数据来源

# cat /proc/sys/fs/file-nr

23104   0   3040400
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • mean to add the formatted="false" attribute?.[ 46% 47325/...
    ProZoom阅读 2,736评论 0 3
  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi阅读 7,499评论 0 10
  • 生活 还是你的梦想吗? 日子过的真快,快的让我以为这一切就是一个梦。 今天一天没有联系,我知...
    眸亦阅读 127评论 0 0
  • 很奇怪 被一百个人安利了小美好之后 看了一整天的电视剧 把剧刷完了又去刷了小说 然后就一发不可收拾地看开了以前很喜...
    孙孙孙亿元阅读 138评论 0 0
  • 那天洗澡突然发现一个问题。 话说洗澡的时候特别容易思考一些没用的事儿。。。是因为脑子进水了吗? 朋友圈拯救了一批爱...
    S猫阅读 866评论 15 9