From a680a13ddd876f80d23fd58484fc02b1c6c648b1 Mon Sep 17 00:00:00 2001 From: Levi Harrison Date: Mon, 28 Jun 2021 08:44:36 -0400 Subject: [PATCH 1/3] Rearranged components Signed-off-by: Levi Harrison --- consoles/node-overview.html | 112 ++++++++++++++++++------------------ 1 file changed, 56 insertions(+), 56 deletions(-) diff --git a/consoles/node-overview.html b/consoles/node-overview.html index 092028d33..50aa46fa3 100644 --- a/consoles/node-overview.html +++ b/consoles/node-overview.html @@ -1,60 +1,5 @@ {{ template "head" . }} -{{ template "prom_content_head" . }} -

Node Overview - {{ reReplaceAll "(.*?://)([^:/]+?)(:\\d+)?/.*" "$2" .Params.instance }}

- -

CPU Usage

-
- - -

Disk I/O Utilization

-
- - -

Memory

-
- - {{ template "prom_right_table_head" }} Overview @@ -114,9 +59,64 @@ {{ template "prom_query_drilldown" (args (printf "100 - node_filesystem_avail_bytes{job='node',instance='%s',mountpoint='%s'} / node_filesystem_size_bytes{job='node'} * 100" .Labels.instance .Labels.mountpoint) "%" "roughlyNearZero") }} {{ end }} - + {{ template "prom_right_table_tail" }} +{{ template "prom_content_head" . }} +

Node Overview - {{ reReplaceAll "(.*?://)([^:/]+?)(:\\d+)?/.*" "$2" .Params.instance }}

+ +

CPU Usage

+
+ + +

Disk I/O Utilization

+
+ + +

Memory

+
+ + {{ template "prom_content_tail" . }} {{ template "tail" }} From 2314a2116938225533a97df5d7c8db4dd9418357 Mon Sep 17 00:00:00 2001 From: Levi Harrison Date: Tue, 29 Jun 2021 20:06:20 -0400 Subject: [PATCH 2/3] Rearranged components - this time on node-disk.html Signed-off-by: Levi Harrison --- consoles/node-disk.html | 69 ++++++++++++++++++++--------------------- 1 file changed, 34 insertions(+), 35 deletions(-) diff --git a/consoles/node-disk.html b/consoles/node-disk.html index 6d0dcc05c..3634a1959 100644 --- a/consoles/node-disk.html +++ b/consoles/node-disk.html @@ -1,40 +1,5 @@ {{ template "head" . }} -{{ template "prom_content_head" . }} -

Node Disk - {{ reReplaceAll "(.*?://)([^:/]+?)(:\\d+)?/.*" "$2" .Params.instance }}

- -

Disk I/O Utilization

-
- -

Filesystem Usage

-
- - {{ template "prom_right_table_head" }} Disks @@ -72,6 +37,40 @@ {{ template "prom_right_table_tail" }} +{{ template "prom_content_head" . }} +

Node Disk - {{ reReplaceAll "(.*?://)([^:/]+?)(:\\d+)?/.*" "$2" .Params.instance }}

+ +

Disk I/O Utilization

+
+ +

Filesystem Usage

+
+ {{ template "prom_content_tail" . }} {{ template "tail" }} From 8baaceab77debae6435ebb6fc2cf6d172ad154d9 Mon Sep 17 00:00:00 2001 From: Levi Harrison Date: Wed, 28 Jul 2021 20:12:06 -0400 Subject: [PATCH 3/3] Cleaned up a little bit of HTML Signed-off-by: Levi Harrison --- consoles/node-disk.html | 2 ++ consoles/node-overview.html | 1 - consoles/node.html | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/consoles/node-disk.html b/consoles/node-disk.html index 3634a1959..ffff41b79 100644 --- a/consoles/node-disk.html +++ b/consoles/node-disk.html @@ -1,6 +1,7 @@ {{ template "head" . }} {{ template "prom_right_table_head" }} + Disks {{ range printf "node_disk_io_time_seconds_total{job='node',instance='%s'}" .Params.instance | query | sortByLabel "device" }} @@ -22,6 +23,7 @@ {{ template "prom_query_drilldown" (args (printf "irate(node_disk_write_time_seconds_total{job='node',instance='%s',device='%s'}[5m]) / irate(node_disk_writes_completed_total{job='node',instance='%s',device='%s'}[5m])" .Labels.instance .Labels.device .Labels.instance .Labels.device) "s" "humanize") }} {{ end }} + Filesystem Fullness {{ define "roughlyNearZero" }} diff --git a/consoles/node-overview.html b/consoles/node-overview.html index 50aa46fa3..92f53ba87 100644 --- a/consoles/node-overview.html +++ b/consoles/node-overview.html @@ -31,7 +31,6 @@ {{ template "prom_query_drilldown" (args (printf "irate(node_network_transmit_bytes_total{job='node',instance='%s',device='%s'}[5m])" .Labels.instance .Labels.device) "B/s" "humanize") }} {{ end }} - Disks diff --git a/consoles/node.html b/consoles/node.html index bf2b7672d..9a37544ee 100644 --- a/consoles/node.html +++ b/consoles/node.html @@ -27,6 +27,7 @@ {{ else }} No nodes found. {{ end }} + {{ template "prom_content_tail" . }}