From 301e912b2b1bd19f17e9addb26b009f6f67d7f88 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Fri, 28 Oct 2016 13:32:27 +0200 Subject: [PATCH] collectd.conf(5): Improve the "BlockDeviceFormat" and "BlockDeviceFormatBasename" sections. --- src/collectd.conf.pod | 70 +++++++++++++++++++------------------------ 1 file changed, 31 insertions(+), 39 deletions(-) diff --git a/src/collectd.conf.pod b/src/collectd.conf.pod index 64be99e2..761351e4 100644 --- a/src/collectd.conf.pod +++ b/src/collectd.conf.pod @@ -7773,8 +7773,6 @@ option is set to 0, refreshing is disabled completely. =item B I -=item B B|B - =item B I =item B B|B @@ -7800,54 +7798,48 @@ Example: Ignore all I devices on any domain, but other block devices (eg. I) will be collected. -If I is set to B, then the device names will be the ones -in the I node for the device in the XML definition of the domain. The -default is B. This is the behavior before adding the option. - -If I is set to B, then the device names will be the ones -in the I node for the device in the XML definition of the domain. - -Example: - -If the domain XML have the following device defined: +=item B B|B - - - - - -
- +If I is set to B, the default, then the device name +seen by the guest will be used for reporting metrics. +This corresponds to the CtargetE> node in the XML definition of the +domain. -setting +If I is set to B, then metrics will be reported +using the path of the source, e.g. an image file. +This corresponds to the CsourceE> node in the XML definition of the +domain. - BlockDeviceFormat target +B -will name the device in the graph as C - -setting - - BlockDeviceFormat source +If the domain XML have the following device defined: -will name the device in the graph as C + + + + + +
+ -These names will also be part of the RRD filename. +Setting C will cause the I to be set +to C. +Setting C will cause the I to be set +to C. =item B B|B -I - this option is honored if and only if -option I is set to B. If set to B then -only the last part of the path will be used for device name and naming the -RRD file. - -Example: - -if the device path (source tag) is: C +The B controls whether the full path or the +L of the source is being used as the I when +B is set to B. Defaults to B. -setting: - BlockDeviceFormatBasename true +B -will set the device name to: C +Assume the device path (source tag) is C. +Setting C will cause the I to +be set to C. +Setting C will cause the I to be +set to C. =item B B -- 2.30.2