about summary refs log tree commit diff
path: root/README.md
diff options
context:
space:
mode:
authorHeikki Kallasjoki <fis@zem.fi>2018-11-30 21:49:29 +0000
committerHeikki Kallasjoki <fis@zem.fi>2018-11-30 21:50:10 +0000
commit1df8f91af10605e3245774ed4b86254e8d9a1ffe (patch)
tree483932952a00c047dc5b617746efa13ec537eed5 /README.md
parentcf2969241324d2464bf1121406404cd8c0f6e0bc (diff)
downloadnano-exporter-1df8f91af10605e3245774ed4b86254e8d9a1ffe.tar.gz
nano-exporter-1df8f91af10605e3245774ed4b86254e8d9a1ffe.tar.xz
nano-exporter-1df8f91af10605e3245774ed4b86254e8d9a1ffe.zip
Add support for matching with prefix in include/exclude lists.
Diffstat (limited to 'README.md')
-rw-r--r--README.md12
1 files changed, 9 insertions, 3 deletions
diff --git a/README.md b/README.md
index 208ffef..e6c580a 100644
--- a/README.md
+++ b/README.md
@@ -145,7 +145,9 @@ arguments can be used to select which devices to report on. The format
 for both is a comma-separated list of device names (e.g.,
 `--diskstats-include=sda,sdb`). If an include list is provided, only
 those devices explicitly listed are included. Otherwise, all devices
-not mentioned on the exclude list are included.
+not mentioned on the exclude list are included. If the given value
+ends in `*`, it matches any string that begins with the part before
+the `*`; otherwise, the match must be exact.
 
 ### `filesystem`
 
@@ -178,7 +180,9 @@ 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.
+exclusion list are accepted. If the given value ends in `*`, it
+matches any string that begins with the part before the `*`;
+otherwise, the match must be exact.
 
 The data is derived from scanning `/proc/mounts` and calling
 `statvfs(2)` on all lines that pass the inclusion checks.
@@ -254,7 +258,9 @@ the loopback interface (`lo`). The `--network-include=` and
 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.
+list are included. If the given value ends in `*`, it matches any
+string that begins with the part before the `*`; otherwise, the match
+must be exact.
 
 ### `textfile`