Skip to content

[!] add Grafana v12 dashboards for Prometheus data source#933

Merged
pashagolub merged 6 commits intomasterfrom
add-grafana-prometheus-dashboards
Sep 3, 2025
Merged

[!] add Grafana v12 dashboards for Prometheus data source#933
pashagolub merged 6 commits intomasterfrom
add-grafana-prometheus-dashboards

Conversation

@pashagolub
Copy link
Copy Markdown
Collaborator

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.

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.
@pashagolub pashagolub self-assigned this Sep 3, 2025
@pashagolub pashagolub added the dashboards Grafana dashboards related label Sep 3, 2025
@pashagolub pashagolub added this to the Grafana v12 milestone Sep 3, 2025
@coveralls
Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 17429847555

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 70.348%

Totals Coverage Status
Change from base Build 17402331711: 0.0%
Covered Lines: 3516
Relevant Lines: 4998

💛 - Coveralls

@pashagolub pashagolub merged commit a3ebb38 into master Sep 3, 2025
9 checks passed
@pashagolub pashagolub deleted the add-grafana-prometheus-dashboards branch September 3, 2025 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dashboards Grafana dashboards related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants