From 69ba0e916b5c50f3b2e146c1e890acbb83b9e0a8 Mon Sep 17 00:00:00 2001 From: Karsten Weiss Date: Mon, 20 Jun 2016 18:08:26 +0200 Subject: [PATCH 1/2] filefd_linux.go: Fix a typo. --- collector/filefd_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collector/filefd_linux.go b/collector/filefd_linux.go index bb359af3..190f7800 100644 --- a/collector/filefd_linux.go +++ b/collector/filefd_linux.go @@ -89,7 +89,7 @@ func parseFileFDStats(r io.Reader, fileName string) (map[string]string, error) { var fileFDStat = map[string]string{} // The file-nr proc is only 1 line with 3 values. fileFDStat["allocated"] = line[0] - // The second value is skipped as it will alwasy be zero in linux 2.6. + // The second value is skipped as it will always be zero in linux 2.6. fileFDStat["maximum"] = line[2] return fileFDStat, nil From 262ed7a8c183698a841ffeba4cee4371114db0f3 Mon Sep 17 00:00:00 2001 From: Karsten Weiss Date: Mon, 20 Jun 2016 18:09:13 +0200 Subject: [PATCH 2/2] README.md: Mention /proc/sys/fs/file-nr filename. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4fc180f4..f3ccd266 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ conntrack | Shows conntrack statistics (does nothing if no `/proc/sys/net/netfil cpu | Exposes CPU statistics | FreeBSD diskstats | Exposes disk I/O statistics from `/proc/diskstats`. | Linux entropy | Exposes available entropy. | Linux -filefd | Exposes file descriptor statistics. | Linux +filefd | Exposes file descriptor statistics from `/proc/sys/fs/file-nr`. | Linux filesystem | Exposes filesystem statistics, such as disk space used. | FreeBSD, Linux, OpenBSD loadavg | Exposes load average. | Darwin, Dragonfly, FreeBSD, Linux, NetBSD, OpenBSD, Solaris mdadm | Exposes statistics about devices in `/proc/mdstat` (does nothing if no `/proc/mdstat` present). | Linux