From 568ecce42137227a851baca172271a9d3891e2d3 Mon Sep 17 00:00:00 2001 From: Paddy Newman Date: Mon, 29 Jan 2018 10:38:39 +0000 Subject: [PATCH] Fix rendering issues with console templates. (#3744) Move tables into the content area so that graphs and very long/wide tables are readable. The issue is present on the node-overview and node-disk pages when the tables are very long and wide. E.g., the host has lots of NICs, disks and filesystems and the filesystem names are very long. We have very long lists of long Docker filesystem names in our Kubernetes clusters. I know people don't really care about the console templates anymore but they are still useful in some cases and the queries are a nice reference for beginners. --- consoles/node-disk.html | 69 ++++++++++++----------- consoles/node-overview.html | 109 ++++++++++++++++++------------------ 2 files changed, 90 insertions(+), 88 deletions(-) diff --git a/consoles/node-disk.html b/consoles/node-disk.html index b02e7ed46..2ef781053 100644 --- a/consoles/node-disk.html +++ b/consoles/node-disk.html @@ -1,5 +1,40 @@ {{ 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 @@ -37,40 +72,6 @@ {{ 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" }} diff --git a/consoles/node-overview.html b/consoles/node-overview.html index 77b0a50df..ba2c6768f 100644 --- a/consoles/node-overview.html +++ b/consoles/node-overview.html @@ -1,5 +1,60 @@ {{ 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 @@ -62,60 +117,6 @@ {{ 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" }}