From 11766041777085ef2746aedda66bf9483a7f1892 Mon Sep 17 00:00:00 2001 From: Heikki Kallasjoki Date: Fri, 30 Nov 2018 22:28:10 +0000 Subject: Filter out unused devices from diskstats. --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index e6c580a..abb2cc0 100644 --- a/README.md +++ b/README.md @@ -134,7 +134,7 @@ The metrics correspond to the columns of `/proc/diskstats`: See the kernel's [Documentation/iostats.txt](https://www.kernel.org/doc/Documentation/iostats.txt) -for more details. The collector assumes the read/write totals are +file for more details. The collector assumes the read/write totals are reported using a sector size of 512 bytes. All metrics have one label, `device`, containing the device name from @@ -149,6 +149,9 @@ 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. +By default, if the device is entirely unused (all metrics are 0), it's +omitted. Use `--diskstats-keep-unused` to include even those devices. + ### `filesystem` Metrics: -- cgit 1.4.1