@ -192,14 +192,17 @@ local table = grafana70.panel.table;
.addTarget(prometheus.target(
.addTarget(prometheus.target(
'rate(node_disk_read_bytes_total{%(nodeExporterSelector)s, instance="$instance", %(diskDeviceSelector)s}[$__rate_interval])' % config,
'rate(node_disk_read_bytes_total{%(nodeExporterSelector)s, instance="$instance", %(diskDeviceSelector)s}[$__rate_interval])' % config,
legendFormat='{{device}} read',
legendFormat='{{device}} read',
intervalFactor=1,
))
))
.addTarget(prometheus.target(
.addTarget(prometheus.target(
'rate(node_disk_written_bytes_total{%(nodeExporterSelector)s, instance="$instance", %(diskDeviceSelector)s}[$__rate_interval])' % config,
'rate(node_disk_written_bytes_total{%(nodeExporterSelector)s, instance="$instance", %(diskDeviceSelector)s}[$__rate_interval])' % config,
legendFormat='{{device}} written',
legendFormat='{{device}} written',
intervalFactor=1,
))
))
.addTarget(prometheus.target(
.addTarget(prometheus.target(
'rate(node_disk_io_time_seconds_total{%(nodeExporterSelector)s, instance="$instance", %(diskDeviceSelector)s}[$__rate_interval])' % config,
'rate(node_disk_io_time_seconds_total{%(nodeExporterSelector)s, instance="$instance", %(diskDeviceSelector)s}[$__rate_interval])' % config,
legendFormat='{{device}} io time',
legendFormat='{{device}} io time',
intervalFactor=1,
)) +
)) +
{
{
seriesOverrides: [
seriesOverrides: [
@ -214,7 +217,7 @@ local table = grafana70.panel.table;
],
],
yaxes: [
yaxes: [
self.yaxe(format='Bps'),
self.yaxe(format='Bps'),
self.yaxe(format='s '),
self.yaxe(format='percentunit '),
],
],
},
},
@ -410,7 +413,7 @@ local table = grafana70.panel.table;
local networkReceived =
local networkReceived =
graphPanel.new(
graphPanel.new(
'Network Received',
'Network Received',
description="Network received (bits/s)" ,
description='Network received (bits/s)' ,
datasource='$datasource',
datasource='$datasource',
span=6,
span=6,
format='bps',
format='bps',
@ -420,12 +423,13 @@ local table = grafana70.panel.table;
.addTarget(prometheus.target(
.addTarget(prometheus.target(
'rate(node_network_receive_bytes_total{%(nodeExporterSelector)s, instance="$instance", device!="lo"}[$__rate_interval]) * 8' % config,
'rate(node_network_receive_bytes_total{%(nodeExporterSelector)s, instance="$instance", device!="lo"}[$__rate_interval]) * 8' % config,
legendFormat='{{device}}',
legendFormat='{{device}}',
intervalFactor=1,
)),
)),
local networkTransmitted =
local networkTransmitted =
graphPanel.new(
graphPanel.new(
'Network Transmitted',
'Network Transmitted',
description="Network transmitted (bits/s)" ,
description='Network transmitted (bits/s)' ,
datasource='$datasource',
datasource='$datasource',
span=6,
span=6,
format='bps',
format='bps',
@ -435,6 +439,7 @@ local table = grafana70.panel.table;
.addTarget(prometheus.target(
.addTarget(prometheus.target(
'rate(node_network_transmit_bytes_total{%(nodeExporterSelector)s, instance="$instance", device!="lo"}[$__rate_interval]) * 8' % config,
'rate(node_network_transmit_bytes_total{%(nodeExporterSelector)s, instance="$instance", device!="lo"}[$__rate_interval]) * 8' % config,
legendFormat='{{device}}',
legendFormat='{{device}}',
intervalFactor=1,
)),
)),
local cpuRow =
local cpuRow =