mirror of
https://github.com/prometheus/node_exporter.git
synced 2024-12-31 16:37:31 -08:00
commit
49f562136d
|
@ -22,7 +22,7 @@ conntrack | Shows conntrack statistics (does nothing if no `/proc/sys/net/netfil
|
||||||
cpu | Exposes CPU statistics | FreeBSD
|
cpu | Exposes CPU statistics | FreeBSD
|
||||||
diskstats | Exposes disk I/O statistics from `/proc/diskstats`. | Linux
|
diskstats | Exposes disk I/O statistics from `/proc/diskstats`. | Linux
|
||||||
entropy | Exposes available entropy. | 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
|
filesystem | Exposes filesystem statistics, such as disk space used. | FreeBSD, Linux, OpenBSD
|
||||||
loadavg | Exposes load average. | Darwin, Dragonfly, FreeBSD, Linux, NetBSD, OpenBSD, Solaris
|
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
|
mdadm | Exposes statistics about devices in `/proc/mdstat` (does nothing if no `/proc/mdstat` present). | Linux
|
||||||
|
|
|
@ -89,7 +89,7 @@ func parseFileFDStats(r io.Reader, fileName string) (map[string]string, error) {
|
||||||
var fileFDStat = map[string]string{}
|
var fileFDStat = map[string]string{}
|
||||||
// The file-nr proc is only 1 line with 3 values.
|
// The file-nr proc is only 1 line with 3 values.
|
||||||
fileFDStat["allocated"] = line[0]
|
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]
|
fileFDStat["maximum"] = line[2]
|
||||||
|
|
||||||
return fileFDStat, nil
|
return fileFDStat, nil
|
||||||
|
|
Loading…
Reference in a new issue