Section 2 · Choose and set up an integration

Monitoring PostgreSQL databases

Estimated time: 1 min

PostgreSQL integration

The PostgreSQL integration provides database performance monitoring designed around PostgreSQL-specific concerns like vacuum and MVCC.

What it’s forMonitoring queries, connections, replication, and vacuum/bloat health
Under the hoodSurfaces PostgreSQL internals without requiring deep database expertise

Metrics collected

The integration collects the metric groups that matter most for PostgreSQL:

  • Queries: Active, waiting, duration
  • Connections: Used, available, by state
  • Transactions: Commits, rollbacks, conflicts
  • Replication: Lag, slot status
  • Vacuum: Dead tuples, autovacuum

What to know

This integration offers:

  • Prebuilt dashboards: overview, query performance, logs
  • Prebuilt alerts: connections, replication, vacuum
  • Vacuum and dead tuple monitoring (MVCC)
  • Buffer cache hit ratio insights
  • Query waiting and lock detection

Set it up

Open this path in your Grafana Cloud stack for a fully interactive experience, or read through it to understand the process first.

Learning path

Monitor PostgreSQL with Grafana Alloy

Welcome to the Grafana learning path that shows you how to monitor PostgreSQL databases with Grafana Alloy and use pre-built dashboards and alerts in Grafana Cloud.

18 min
Beginner
Docs & blog posts

Open in Grafana Cloud

Complete this learning path directly in your Grafana Cloud stack with an interactive learning experience.

Path completed