This repository was archived by the owner on Jul 6, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +26
-11
lines changed Expand file tree Collapse file tree 3 files changed +26
-11
lines changed Original file line number Diff line number Diff line change 3
3
## Observations ##
4
4
5
5
### Master (`{ {.hosts.master} }`) ###
6
- Extension name | Installed version | Default version | Is old
7
- ---------------|-------------------|-----------------|--------
8
- { { range $i , $key := (index (index (index .results .hosts.master) " data" ) " _keys" ) } }
9
- { {- $value := (index (index (index $.results $.hosts.master) " data" ) $key ) -} }
10
- { { $key } } | { { $value .installed_version } } | { { $value .default_version } } | { { $value .is_old } }
11
- { { end } }
6
+
7
+ Database | Extension name | Installed version | Default version | Is old
8
+ ---------|----------------|-------------------|-----------------|--------
9
+ { { range $d , $db := (index (index (index .results .hosts.master) " data" ) " _keys" ) -} }
10
+ { {- $dbData := (index (index (index $.results $.hosts.master) " data" ) $db ) -} }
11
+ { {- range $de , $dbext := (index $dbData " _keys" ) -} }
12
+ { {- $extData := (index $dbData $dbext ) -} }
13
+ { { $db } } | { { $dbext } } | { { $extData .installed_version } } | { { $extData .default_version } } | { { $extData .is_old } }
14
+ { { end -} }
15
+ { { end -} }
16
+
17
+ { {/* force empty line */} }
12
18
13
19
## Conclusions ##
14
20
15
21
16
22
## Recommendations ##
17
-
Original file line number Diff line number Diff line change 5
5
### Master (`{ {.hosts.master} }`) ###
6
6
Table | Size | Extra | Bloat | Live | Last vacuum
7
7
-------|------|-------|-------|------|-------------
8
- { { range $i , $key := (index (index (index .results .hosts.master) " data" ) " _keys" ) } }{ { $key } }{ { $value := (index (index (index $.results $.hosts.master) " data" ) $key ) } } | { { ( index $value " Size" ) } } | { { ( index $value " Extra" ) } } | { { ( index $value " Bloat" ) } } | { { ( index $value " Live" ) } } | { { if (index $value " Last Vaccuum" ) } } { { ( index $value " Last Vaccuum" ) } } { { end } }
8
+ { { range $i , $key := (index (index (index .results .hosts.master) " data" ) " _keys" ) } }
9
+ { {- $value := (index (index (index $.results $.hosts.master) " data" ) $key ) -} }
10
+ { { $key } } | { { ( index $value " Size" ) } } | { { ( index $value " Extra" ) } } | { { ( index $value " Bloat" ) } } | { { ( index $value " Live" ) } } | { { if (index $value " Last Vaccuum" ) } } { { ( index $value " Last Vaccuum" ) } } { { end } }
9
11
{ { end } }
10
12
11
13
{ { if gt (len .hosts.replicas) 0 } }
15
17
{ { if (index $.results $host ) } }
16
18
Table | Size | Extra | Bloat | Live | Last vacuum
17
19
-------|------|-------|-------|------|-------------
18
- { { range $i , $key := (index (index (index $.results $host ) " data" ) " _keys" ) } }{ { $key } }{ { $value := (index (index (index $.results $host ) " data" ) $key ) } } | { { ( index $value " Size" ) } } | { { ( index $value " Extra" ) } } | { { ( index $value " Bloat" ) } } | { { ( index $value " Live" ) } } | { { if (index $value " Last Vaccuum" ) } } { { ( index $value " Last Vaccuum" ) } } { { end } }
20
+ { { range $i , $key := (index (index (index $.results $host ) " data" ) " _keys" ) } }
21
+ { {- $value := (index (index (index $.results $host ) " data" ) $key ) -} }
22
+ { { $key } } | { { ( index $value " Size" ) } } | { { ( index $value " Extra" ) } } | { { ( index $value " Bloat" ) } } | { { ( index $value " Live" ) } } | { { if (index $value " Last Vaccuum" ) } } { { ( index $value " Last Vaccuum" ) } } { { end } }
19
23
{ { end } }
20
24
{ {- else -} }
21
25
No data
Original file line number Diff line number Diff line change 5
5
### Master (`{ {.hosts.master} }`) ###
6
6
Index (Table) | Size | Extra | Bloat | Live | Fill factor
7
7
---------------|------|-------|-------|------|-------------
8
- { { range $i , $key := (index (index (index .results .hosts.master) " data" ) " _keys" ) } } { { $tableIndex := Split $key " \n " } } { { $table := Trim (index $tableIndex 1) " ()" } }{ { (index $tableIndex 0) } } ({ { $table } }){ { $value := (index (index (index $.results $.hosts.master) " data" ) $key ) } } | { { ( index $value " Size" ) } } | { { ( index $value " Extra" ) } } | { { ( index $value " Bloat" ) } } | { { ( index $value " Live" ) } } | { { ( index $value " fillfactor" ) } }
8
+ { { range $i , $key := (index (index (index .results .hosts.master) " data" ) " _keys" ) } }
9
+ { {- $value := (index (index (index $.results $.hosts.master) " data" ) $key ) -} }
10
+ { {- $tableIndex := Split $key " \n " -} }
11
+ { { $table := Trim (index $tableIndex 1) " ()" } }{ { (index $tableIndex 0) } } ({ { $table } }) | { { ( index $value " Size" ) } } | { { ( index $value " Extra" ) } } | { { ( index $value " Bloat" ) } } | { { ( index $value " Live" ) } } | { { ( index $value " fillfactor" ) } }
9
12
{ { end } }
10
13
11
14
{ { if gt (len .hosts.replicas) 0 } }
15
18
{ { if (index $.results $host ) } }
16
19
Index (Table) | Size | Extra | Bloat | Live | Fill factor
17
20
---------------|------|-------|-------|------|-------------
18
- { { range $i , $key := (index (index (index $.results $host ) " data" ) " _keys" ) } } { { $tableIndex := Split $key " \n " } } { { $table := Trim (index $tableIndex 1) " ()" } }{ { (index $tableIndex 0) } } ({ { $table } }) { { $value := (index (index (index $.results $host ) " data" ) $key ) } }| { { ( index $value " Size" ) } }{ { $value := (index (index (index $.results $host ) " data" ) $key ) } } | { { ( index $value " Extra" ) } } | { { ( index $value " Bloat" ) } } | { { ( index $value " Live" ) } } | { { ( index $value " fillfactor" ) } }
21
+ { { range $i , $key := (index (index (index $.results $host ) " data" ) " _keys" ) } }
22
+ { {- $value := (index (index (index $.results $host ) " data" ) $key ) -} }
23
+ { {- $tableIndex := Split $key " \n " -} }
24
+ { { $table := Trim (index $tableIndex 1) " ()" } }{ { (index $tableIndex 0) } } ({ { $table } }) { { $value := (index (index (index $.results $host ) " data" ) $key ) } }| { { ( index $value " Size" ) } } | { { ( index $value " Extra" ) } } | { { ( index $value " Bloat" ) } } | { { ( index $value " Live" ) } } | { { ( index $value " fillfactor" ) } }
19
25
{ { end } }
20
26
{ {- else -} }
21
27
No data
You can’t perform that action at this time.
0 commit comments