about summary refs log tree commit diff
path: root/README.md
diff options
context:
space:
mode:
authorHeikki Kallasjoki <fis@zem.fi>2018-11-30 17:25:14 +0000
committerHeikki Kallasjoki <fis@zem.fi>2018-11-30 17:25:17 +0000
commitefee4edcad70b4d53c1f258e4f5f955a223006e9 (patch)
tree2ad24ec1d4dedd43505649758b67e971fb06679f /README.md
parent7aa7f859f29d87d5b2628ad7f1dca27f36ceae13 (diff)
downloadnano-exporter-efee4edcad70b4d53c1f258e4f5f955a223006e9.tar.gz
nano-exporter-efee4edcad70b4d53c1f258e4f5f955a223006e9.tar.xz
nano-exporter-efee4edcad70b4d53c1f258e4f5f955a223006e9.zip
Support include/exclude lists in the filesystem collector.
Diffstat (limited to 'README.md')
-rw-r--r--README.md14
1 files changed, 12 insertions, 2 deletions
diff --git a/README.md b/README.md
index 453b992..1114d4b 100644
--- a/README.md
+++ b/README.md
@@ -152,11 +152,21 @@ Metrics:
 
 Labels:
 
-* `device`: Device node mounted at the location.
+* `device`: Device node path mounted at the location.
 * `fstype`: Mounted filesystem type.
 * `mountpoint`: Location where the filesystem is mounted.
 
-TODO: inclusion/exclusion lists.
+By default, all mounts where the device path starts with an `/` are
+included. Command line arguments of the form
+`--filesystem-{in,ex}clude-{device,type,mount}=X,Y,Z` can be used to
+define comma-separated inclusion and exclusion lists for the device
+path, filesystem type and mountpoint labels, respectively. Each of the
+three categories is tested independently, and only if a mounted
+filesystem passes all three tests, it is included in the metrics. For
+each category, if an include list is specified, only the explicitly
+listed values are accepted -- this overrides even the `/` prefix test
+for devices. If an include list is not set, all values not on the
+exclusion list are accepted.
 
 The data is derived from scanning `/proc/mounts` and calling
 `statvfs(2)` on all lines that pass the inclusion checks.