From ed7823703623e03190c963e829d38963623a35a6 Mon Sep 17 00:00:00 2001 From: Sergiusz Urbaniak Date: Thu, 12 Sep 2019 13:55:12 +0200 Subject: [PATCH] node-mixin: fix query in Disk Space Utilisation dashboard Signed-off-by: Sergiusz Urbaniak --- docs/node-mixin/dashboards/use.libsonnet | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/node-mixin/dashboards/use.libsonnet b/docs/node-mixin/dashboards/use.libsonnet index da66427b..8463ab95 100644 --- a/docs/node-mixin/dashboards/use.libsonnet +++ b/docs/node-mixin/dashboards/use.libsonnet @@ -280,9 +280,9 @@ local g = import 'grafana-builder/grafana.libsonnet'; g.queryPanel(||| 1 - ( - max without (mountpoint, fstype) (node_filesystem_avail_bytes{%(nodeExporterSelector)s, %(fsSelector)s, instance="$instance"}}) + max without (mountpoint, fstype) (node_filesystem_avail_bytes{%(nodeExporterSelector)s, %(fsSelector)s, instance="$instance"}) / - max without (mountpoint, fstype) (node_filesystem_size_bytes{%(nodeExporterSelector)s, %(fsSelector)s, instance="$instance"}}) + max without (mountpoint, fstype) (node_filesystem_size_bytes{%(nodeExporterSelector)s, %(fsSelector)s, instance="$instance"}) ) ||| % $._config, '{{device}}') + {