aboutsummaryrefslogtreecommitdiff
path: root/docs/node-mixin/rules/rules.libsonnet
diff options
context:
space:
mode:
Diffstat (limited to 'docs/node-mixin/rules/rules.libsonnet')
-rw-r--r--docs/node-mixin/rules/rules.libsonnet16
1 files changed, 4 insertions, 12 deletions
diff --git a/docs/node-mixin/rules/rules.libsonnet b/docs/node-mixin/rules/rules.libsonnet
index ad1b717..b5efc6a 100644
--- a/docs/node-mixin/rules/rules.libsonnet
+++ b/docs/node-mixin/rules/rules.libsonnet
@@ -61,24 +61,16 @@
61 }, 61 },
62 { 62 {
63 // Disk utilisation (seconds spent, 1 second rate) 63 // Disk utilisation (seconds spent, 1 second rate)
64 // TODO: This should probably not aggregate over all devices but 64 record: 'instance_device:node_disk_io_time_seconds:rate1m',
65 // keep them separate.
66 record: 'instance:node_disk_io_time_seconds:rate1m',
67 expr: ||| 65 expr: |||
68 sum without (device) ( 66 rate(node_disk_io_time_seconds_total{%(nodeExporterSelector)s, %(diskDeviceSelector)s}[1m])
69 rate(node_disk_io_time_seconds_total{%(nodeExporterSelector)s, %(diskDeviceSelector)s}[1m])
70 )
71 ||| % $._config, 67 ||| % $._config,
72 }, 68 },
73 { 69 {
74 // Disk saturation (weighted seconds spent, 1 second rate) 70 // Disk saturation (weighted seconds spent, 1 second rate)
75 // TODO: This should probably not aggregate over all devices but 71 record: 'instance_device:node_disk_io_time_weighted_seconds:rate1m',
76 // keep them separate.
77 record: 'instance:node_disk_io_time_weighted_seconds:rate1m',
78 expr: ||| 72 expr: |||
79 sum without (device) ( 73 rate(node_disk_io_time_weighted_seconds_total{%(nodeExporterSelector)s, %(diskDeviceSelector)s}[1m])
80 rate(node_disk_io_time_weighted_seconds_total{%(nodeExporterSelector)s, %(diskDeviceSelector)s}[1m])
81 )
82 ||| % $._config, 74 ||| % $._config,
83 }, 75 },
84 // TODO: For the following rules, consider configurable filtering to exclude more network 76 // TODO: For the following rules, consider configurable filtering to exclude more network