Commit b5894eb
* [+] improve recommendation metrics, closes #764
Refactor PostgreSQL recommendation metrics to consolidate multiple
findings per metric type.
The changes consolidate all 8 recommendation metrics to use
an aggregation pattern that combines multiple database objects into
comma-separated strings instead of separate rows, limiting results to
50 items with overflow indicators, and actionable guidance templates
were added to extra_info fields.
* [-] fix `metric_storage_name` properties in YAML, fixes #920
* [+] improve "Recommendations" dashboard
* [-] fix object name aggregation by @0xgouda
* [-] tweak recommendations for `reco_add_index` metric
Latest versions of pg_qualstats return not only CREATE INDEX but
affected queries array. So use CREATE INDEX as is in recommendations,
and output `queryids` if available in `extra_info`.
Due to long recommendation text limit concatenated output to 10 items.
Reported by @0xgouda.
------
Co-authored-by: Ahmed Gouda <[email protected]>
1 parent 8ea2191 commit b5894eb
File tree
6 files changed
+336
-940
lines changed- contrib
- docker
- docs/reference
- grafana/postgres/v12
- internal/metrics
6 files changed
+336
-940
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| 19 | + | |
| 20 | + | |
18 | 21 | | |
19 | 22 | | |
20 | 23 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
| 139 | + | |
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| |||
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
202 | | - | |
| 202 | + | |
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
| |||
0 commit comments