mirror of
https://github.com/prometheus/prometheus.git
synced 2025-08-07 06:37:17 +02:00
Rearranged components - this time on node-disk.html
Signed-off-by: Levi Harrison <git@leviharrison.dev>
This commit is contained in:
parent
a680a13ddd
commit
2314a21169
@ -1,40 +1,5 @@
|
|||||||
{{ template "head" . }}
|
{{ template "head" . }}
|
||||||
|
|
||||||
{{ template "prom_content_head" . }}
|
|
||||||
<h1>Node Disk - {{ reReplaceAll "(.*?://)([^:/]+?)(:\\d+)?/.*" "$2" .Params.instance }}</h1>
|
|
||||||
|
|
||||||
<h3>Disk I/O Utilization</h3>
|
|
||||||
<div id="diskioGraph"></div>
|
|
||||||
<script>
|
|
||||||
new PromConsole.Graph({
|
|
||||||
node: document.querySelector("#diskioGraph"),
|
|
||||||
expr: [
|
|
||||||
"irate(node_disk_io_time_seconds_total{job='node',instance='{{ .Params.instance }}',device!~'^(md\\\\d+$|dm-)'}[5m]) * 100",
|
|
||||||
],
|
|
||||||
min: 0,
|
|
||||||
name: '[[ device ]]',
|
|
||||||
yUnits: "%",
|
|
||||||
yAxisFormatter: PromConsole.NumberFormatter.humanizeNoSmallPrefix,
|
|
||||||
yHoverFormatter: PromConsole.NumberFormatter.humanizeNoSmallPrefix,
|
|
||||||
yTitle: 'Disk I/O Utilization'
|
|
||||||
})
|
|
||||||
</script>
|
|
||||||
<h3>Filesystem Usage</h3>
|
|
||||||
<div id="fsGraph"></div>
|
|
||||||
<script>
|
|
||||||
new PromConsole.Graph({
|
|
||||||
node: document.querySelector("#fsGraph"),
|
|
||||||
expr: "100 - node_filesystem_avail_bytes{job='node',instance='{{ .Params.instance }}'} / node_filesystem_size_bytes{job='node'} * 100",
|
|
||||||
min: 0,
|
|
||||||
max: 100,
|
|
||||||
name: '[[ mountpoint ]]',
|
|
||||||
yUnits: "%",
|
|
||||||
yAxisFormatter: PromConsole.NumberFormatter.humanizeNoSmallPrefix,
|
|
||||||
yHoverFormatter: PromConsole.NumberFormatter.humanizeNoSmallPrefix,
|
|
||||||
yTitle: 'Filesystem Fullness'
|
|
||||||
})
|
|
||||||
</script>
|
|
||||||
|
|
||||||
{{ template "prom_right_table_head" }}
|
{{ template "prom_right_table_head" }}
|
||||||
<th colspan="2">Disks</th>
|
<th colspan="2">Disks</th>
|
||||||
</tr>
|
</tr>
|
||||||
@ -72,6 +37,40 @@
|
|||||||
</tr>
|
</tr>
|
||||||
{{ template "prom_right_table_tail" }}
|
{{ template "prom_right_table_tail" }}
|
||||||
|
|
||||||
|
{{ template "prom_content_head" . }}
|
||||||
|
<h1>Node Disk - {{ reReplaceAll "(.*?://)([^:/]+?)(:\\d+)?/.*" "$2" .Params.instance }}</h1>
|
||||||
|
|
||||||
|
<h3>Disk I/O Utilization</h3>
|
||||||
|
<div id="diskioGraph"></div>
|
||||||
|
<script>
|
||||||
|
new PromConsole.Graph({
|
||||||
|
node: document.querySelector("#diskioGraph"),
|
||||||
|
expr: [
|
||||||
|
"irate(node_disk_io_time_seconds_total{job='node',instance='{{ .Params.instance }}',device!~'^(md\\\\d+$|dm-)'}[5m]) * 100",
|
||||||
|
],
|
||||||
|
min: 0,
|
||||||
|
name: '[[ device ]]',
|
||||||
|
yUnits: "%",
|
||||||
|
yAxisFormatter: PromConsole.NumberFormatter.humanizeNoSmallPrefix,
|
||||||
|
yHoverFormatter: PromConsole.NumberFormatter.humanizeNoSmallPrefix,
|
||||||
|
yTitle: 'Disk I/O Utilization'
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
<h3>Filesystem Usage</h3>
|
||||||
|
<div id="fsGraph"></div>
|
||||||
|
<script>
|
||||||
|
new PromConsole.Graph({
|
||||||
|
node: document.querySelector("#fsGraph"),
|
||||||
|
expr: "100 - node_filesystem_avail_bytes{job='node',instance='{{ .Params.instance }}'} / node_filesystem_size_bytes{job='node'} * 100",
|
||||||
|
min: 0,
|
||||||
|
max: 100,
|
||||||
|
name: '[[ mountpoint ]]',
|
||||||
|
yUnits: "%",
|
||||||
|
yAxisFormatter: PromConsole.NumberFormatter.humanizeNoSmallPrefix,
|
||||||
|
yHoverFormatter: PromConsole.NumberFormatter.humanizeNoSmallPrefix,
|
||||||
|
yTitle: 'Filesystem Fullness'
|
||||||
|
})
|
||||||
|
</script>
|
||||||
{{ template "prom_content_tail" . }}
|
{{ template "prom_content_tail" . }}
|
||||||
|
|
||||||
{{ template "tail" }}
|
{{ template "tail" }}
|
||||||
|
Loading…
Reference in New Issue
Block a user