commit | e958203796650e3959a43708d67534bf36f4c83b | [log] [tgz] |
---|---|---|
author | b.liu <b.liu@mobiletek.cn> | Thu Apr 17 19:18:16 2025 +0800 |
committer | b.liu <b.liu@mobiletek.cn> | Thu Apr 17 19:18:16 2025 +0800 |
tree | b2d43b7c77053224287779c12b5e890cadc3d327 | |
parent | f51a5559b56d8fd47d9623531065443befb43e5b [diff] [blame] |
ASR_BASE Change-Id: Icf3719cc0afe3eeb3edc7fa80a2eb5199ca9dda1
diff --git a/external/subpack/utils/prometheus-node-exporter-ucode/files/base/filefd.uc b/external/subpack/utils/prometheus-node-exporter-ucode/files/base/filefd.uc new file mode 100644 index 0000000..359cffd --- /dev/null +++ b/external/subpack/utils/prometheus-node-exporter-ucode/files/base/filefd.uc
@@ -0,0 +1,7 @@ +const x = wsplit(oneline("/proc/sys/fs/file-nr")); + +if (length(x) < 3) + return false; + +gauge("node_filefd_allocated")(null, x[0]); +gauge("node_filefd_maximum")(null, x[2]);