|
|
@ -147,7 +147,19 @@ local table = grafana70.panel.table; |
|
|
|
||| % config, legendFormat='App Memory' |
|
|
|
||| % config, legendFormat='App Memory' |
|
|
|
)) |
|
|
|
)) |
|
|
|
.addTarget(prometheus.target('node_memory_wired_bytes{%(nodeExporterSelector)s, instance="$instance", %(clusterLabel)s="$cluster"}' % config, legendFormat='Wired Memory')) |
|
|
|
.addTarget(prometheus.target('node_memory_wired_bytes{%(nodeExporterSelector)s, instance="$instance", %(clusterLabel)s="$cluster"}' % config, legendFormat='Wired Memory')) |
|
|
|
.addTarget(prometheus.target('node_memory_compressed_bytes{%(nodeExporterSelector)s, instance="$instance", %(clusterLabel)s="$cluster"}' % config, legendFormat='Compressed')), |
|
|
|
.addTarget(prometheus.target('node_memory_compressed_bytes{%(nodeExporterSelector)s, instance="$instance", %(clusterLabel)s="$cluster"}' % config, legendFormat='Compressed')) |
|
|
|
|
|
|
|
else if platform == 'AIX' then |
|
|
|
|
|
|
|
memoryGraphPanelPrototype { stack: false } |
|
|
|
|
|
|
|
.addTarget(prometheus.target('node_memory_total_bytes{%(nodeExporterSelector)s, instance="$instance", %(clusterLabel)s="$cluster"}' % config, legendFormat='Physical Memory')) |
|
|
|
|
|
|
|
.addTarget(prometheus.target( |
|
|
|
|
|
|
|
||| |
|
|
|
|
|
|
|
( |
|
|
|
|
|
|
|
node_memory_total_bytes{%(nodeExporterSelector)s, instance="$instance", %(clusterLabel)s="$cluster"} - |
|
|
|
|
|
|
|
node_memory_available_bytes{%(nodeExporterSelector)s, instance="$instance", %(clusterLabel)s="$cluster"} |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
||| % config, legendFormat='Memory Used' |
|
|
|
|
|
|
|
)), |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// NOTE: avg() is used to circumvent a label change caused by a node_exporter rollout. |
|
|
|
// NOTE: avg() is used to circumvent a label change caused by a node_exporter rollout. |
|
|
|
local memoryGaugePanelPrototype = |
|
|
|
local memoryGaugePanelPrototype = |
|
|
@ -194,8 +206,21 @@ local table = grafana70.panel.table; |
|
|
|
* |
|
|
|
* |
|
|
|
100 |
|
|
|
100 |
|
|
|
||| % config |
|
|
|
||| % config |
|
|
|
|
|
|
|
)) |
|
|
|
|
|
|
|
else if platform == 'AIX' then |
|
|
|
|
|
|
|
memoryGaugePanelPrototype |
|
|
|
|
|
|
|
.addTarget(prometheus.target( |
|
|
|
|
|
|
|
||| |
|
|
|
|
|
|
|
100 - |
|
|
|
|
|
|
|
( |
|
|
|
|
|
|
|
avg(node_memory_available_bytes{%(nodeExporterSelector)s, instance="$instance", %(clusterLabel)s="$cluster"}) / |
|
|
|
|
|
|
|
avg(node_memory_total_bytes{%(nodeExporterSelector)s, instance="$instance", %(clusterLabel)s="$cluster"}) |
|
|
|
|
|
|
|
* 100 |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
||| % config |
|
|
|
)), |
|
|
|
)), |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
local diskIO = |
|
|
|
local diskIO = |
|
|
|
graphPanel.new( |
|
|
|
graphPanel.new( |
|
|
|
'Disk I/O', |
|
|
|
'Disk I/O', |
|
|
@ -501,8 +526,8 @@ local table = grafana70.panel.table; |
|
|
|
tags=(config.dashboardTags), |
|
|
|
tags=(config.dashboardTags), |
|
|
|
timezone='utc', |
|
|
|
timezone='utc', |
|
|
|
refresh='30s', |
|
|
|
refresh='30s', |
|
|
|
graphTooltip='shared_crosshair', |
|
|
|
uid=std.md5(uid), |
|
|
|
uid=std.md5(uid) |
|
|
|
graphTooltip='shared_crosshair' |
|
|
|
) |
|
|
|
) |
|
|
|
.addTemplates(templates) |
|
|
|
.addTemplates(templates) |
|
|
|
.addRows(rows) |
|
|
|
.addRows(rows) |
|
|
@ -513,8 +538,20 @@ local table = grafana70.panel.table; |
|
|
|
tags=(config.dashboardTags), |
|
|
|
tags=(config.dashboardTags), |
|
|
|
timezone='utc', |
|
|
|
timezone='utc', |
|
|
|
refresh='30s', |
|
|
|
refresh='30s', |
|
|
|
graphTooltip='shared_crosshair', |
|
|
|
uid=std.md5(uid), |
|
|
|
uid=std.md5(uid) |
|
|
|
graphTooltip='shared_crosshair' |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
.addTemplates(templates) |
|
|
|
|
|
|
|
.addRows(rows) |
|
|
|
|
|
|
|
else if platform == 'AIX' then |
|
|
|
|
|
|
|
dashboard.new( |
|
|
|
|
|
|
|
'%sAIX' % config.dashboardNamePrefix, |
|
|
|
|
|
|
|
time_from='now-1h', |
|
|
|
|
|
|
|
tags=(config.dashboardTags), |
|
|
|
|
|
|
|
timezone='utc', |
|
|
|
|
|
|
|
refresh='30s', |
|
|
|
|
|
|
|
uid=std.md5(uid), |
|
|
|
|
|
|
|
graphTooltip='shared_crosshair' |
|
|
|
) |
|
|
|
) |
|
|
|
.addTemplates(templates) |
|
|
|
.addTemplates(templates) |
|
|
|
.addRows(rows), |
|
|
|
.addRows(rows), |
|
|
|