diff options
author | Heikki Kallasjoki <fis@zem.fi> | 2018-11-30 01:28:38 +0000 |
---|---|---|
committer | Heikki Kallasjoki <fis@zem.fi> | 2018-11-30 01:28:38 +0000 |
commit | db511797d2607394487448b8995fb10bd709a23c (patch) | |
tree | 43309925a36457a0d12a51ae4bd0515dc5cbce47 /README.md | |
parent | 9784d8743daf4eb4d298c15ae6d3c8fa19faf486 (diff) | |
download | nano-exporter-db511797d2607394487448b8995fb10bd709a23c.tar.gz nano-exporter-db511797d2607394487448b8995fb10bd709a23c.tar.xz nano-exporter-db511797d2607394487448b8995fb10bd709a23c.zip |
Add the filesystem collector.
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 37 |
1 files changed, 36 insertions, 1 deletions
diff --git a/README.md b/README.md index 7ea87fa..1626b83 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,7 @@ including generated metrics, labels and configuration options. | Name | Description | | ---- | ----------- | | [`cpu`](#cpu) | CPU usage from `/proc/stat` and CPU frequency scaling data from sysfs. | +| [`filesystem`](#filesystem) | Statistics of mounted filesystems from `statvfs(2)`. | | [`hwmon`](#hwmon) | Temperature, fan and voltage sensors from `/sys/class/hwmon`. | | [`meminfo`](#meminfo) | Memory usage statistics from `/proc/meminfo`. | | [`network`](#network) | Network device transmit/receive statistics from `/proc/net/dev`. | @@ -82,13 +83,39 @@ Metrics and labels: `cpufreq/scaling_cur_freq` value under the CPU-specific sysfs directory. +### `filesystem` + +Metrics: + +* `node_filesystem_size_bytes`: Total size of the filesystem. +* `node_filesystem_free_bytes`: Number of free bytes in the + filesystem. +* `node_filesystem_avail_bytes`: Number of free bytes available to + unprivileged users. +* `node_filesystem_files`: Total number of inodes supported by the + filesystem. +* `node_filesystem_files_free`: Number of free inodes. +* `node_filesystem_readonly`: Whether the filesystem is mounted + read-only: `0` (rw) or `1` (ro). + +Labels: + +* `device`: Device node mounted at the location. +* `fstype`: Mounted filesystem type. +* `mountpoint`: Location where the filesystem is mounted. + +TODO: inclusion/exclusion lists. + +The data is derived from scanning `/proc/mounts` and calling +`statvfs(2)` on all lines that pass the inclusion checks. + ### `hwmon` The `hwmon` collector pulls data from all the sysfs subdirectories under `/sys/class/hwmon`. The supported entry types are temperature (`temp*`), fan (`fan*` and voltage (`in*`) sensors. -Metrics and dimensions: +Metrics: * `node_hwmon_temp_celsius`: Current temperature in degrees Celsius. * `node_hwmon_fan_rpm`: Current fan speed in RPM. @@ -144,6 +171,14 @@ included in your `/proc/net/dev` file. A normal set is: | | X | `colls` | Collisions while transmitting | | | X | `carrier` | ? | +By default, statistics are reported for all network interfaces except +the loopback interface (`lo`). The `--network-include=` and +`--network-exclude=` options can be used to define a comma-separated +list of interface names to explicitly include and exclude, +respectively. If an include list is set, only those interfaces are +included. Otherwise, all interfaces *not* mentioned in the exclude +list are included. + ### `textfile` The `textfile` collector can be used to conveniently export custom |