Commit a3ebb38
authored
[!] add Grafana v12 dashboards for Prometheus data source (#933)
* [!] add Grafana v12 dashboards for Prometheus data source
Add Prometheus dashboard equivalents for PostgreSQL monitoring
Created a comprehensive set of 12 Grafana dashboards that use Prometheus as
the data source, providing equivalent functionality to the existing PostgreSQL
dashboards. The new dashboards translate SQL queries to PromQL while maintaining
all monitoring capabilities.
New dashboards include:
- Global database overview with connections, QPS, TPS, and query runtime
- Query performance analysis with top queries by time and calls
- Table activity monitoring with scans, modifications, and sizes
- Replication monitoring with WAL activity and status tracking
- Performance recommendations for indexes, queries, and configuration
- Stored procedures monitoring with call statistics and performance
- Statement analysis dashboards for calls and execution time
- System resource monitoring for CPU, memory, and disk usage
All dashboards feature:
- Proper PromQL translations using rate() functions for counters
- Consistent template variables for database selection and time intervals
- Table transformations to join metrics by common identifiers
- Appropriate units and thresholds for monitoring PostgreSQL systems
This enables users who prefer Prometheus as their metrics backend to have
the same comprehensive PostgreSQL monitoring capabilities that were previously
only available with direct PostgreSQL connections.
* [-] fix "Connections Overview" panel in "Global Overview dashboard"
* [+] enable both dashboard sets Postgres and Prometheus in docker compose
* [-] fix Connections Overview promql1 parent 9e3ffca commit a3ebb38
File tree
21 files changed
+12022
-31
lines changed- docker
- grafana
- postgres/v12
- prometheus/v12
21 files changed
+12022
-31
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
| 22 | + | |
| 23 | + | |
28 | 24 | | |
29 | 25 | | |
30 | 26 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
10 | 12 | | |
11 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
| 117 | + | |
118 | 118 | | |
119 | | - | |
| 119 | + | |
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| |||
0 commit comments