aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorSergiusz Urbaniak <sergiusz.urbaniak@gmail.com>2019-09-12 13:57:19 +0200
committerSergiusz Urbaniak <sergiusz.urbaniak@gmail.com>2019-09-12 14:02:56 +0200
commitf4417b209a6fd7520d4488ec1d4c632d077ae0aa (patch)
tree4062f4868677b4bd7c8565681525be53e538539b /docs
parented7823703623e03190c963e829d38963623a35a6 (diff)
downloadprometheus_node_collector-f4417b209a6fd7520d4488ec1d4c632d077ae0aa.tar.bz2
prometheus_node_collector-f4417b209a6fd7520d4488ec1d4c632d077ae0aa.tar.xz
prometheus_node_collector-f4417b209a6fd7520d4488ec1d4c632d077ae0aa.zip
node-mixin: fix configuration for unset fsSelector/diskDeviceSelector
As per https://github.com/prometheus/node_exporter/pull/1429#discussion_r304210103 we want to fetch all devices and all fs types. Currently, this is done by setting empty string which breaks most queries which rely on it. This fixes it by setting the appropriate selector instead of empty string. Signed-off-by: Sergiusz Urbaniak <sergiusz.urbaniak@gmail.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/node-mixin/config.libsonnet4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/node-mixin/config.libsonnet b/docs/node-mixin/config.libsonnet
index 8cf9860..b25c393 100644
--- a/docs/node-mixin/config.libsonnet
+++ b/docs/node-mixin/config.libsonnet
@@ -9,13 +9,13 @@
9 // empty, all filesystems are selected. If you have unusual 9 // empty, all filesystems are selected. If you have unusual
10 // filesystem you don't want to include in dashboards and 10 // filesystem you don't want to include in dashboards and
11 // alerting, you can exclude them here, e.g. 'fstype!="tmpfs"'. 11 // alerting, you can exclude them here, e.g. 'fstype!="tmpfs"'.
12 fsSelector: '', 12 fsSelector: 'fstype!=""',
13 13
14 // Select the device for disk-related queries. If left empty, all 14 // Select the device for disk-related queries. If left empty, all
15 // devices are selected. If you have unusual devices you don't 15 // devices are selected. If you have unusual devices you don't
16 // want to include in dashboards and alerting, you can exclude 16 // want to include in dashboards and alerting, you can exclude
17 // them here, e.g. 'device!="tmpfs"'. 17 // them here, e.g. 'device!="tmpfs"'.
18 diskDeviceSelector: '', 18 diskDeviceSelector: 'device!=""',
19 19
20 // Some of the alerts are meant to fire if a critical failure of a 20 // Some of the alerts are meant to fire if a critical failure of a
21 // node is imminent (e.g. the disk is about to run full). In a 21 // node is imminent (e.g. the disk is about to run full). In a