pg_stat_* views), so they are
identical whether the database runs on Amazon RDS, Google Cloud SQL, or Azure Database for PostgreSQL Flexible Server.
Enabling metrics
Enable Metrics (inputenableMetrics) is on by default on the Postgres blueprint installation. Metrics collection:
- Provisions a dedicated monitoring role in the database, granted
pg_monitorand nothing else. The role can read Postgres statistics — never your data. - Runs a small exporter pod (about 50m CPU / 64Mi memory) in your cluster that connects to the database over TLS and exposes its statistics for collection.
What is collected
Collection is deliberately coarse: metrics are scraped once a minute and per-table and per-index statistics are not
collected, which keeps a database’s footprint at roughly 250 time series regardless of how many tables it has.
Query-level statistics (
pg_stat_statements) are not collected, so query load is measured as active backends and
row throughput rather than as per-statement counts.
Host-level metrics
CPU, IOPS, storage headroom, and failover events are reported by the cloud provider rather than by Postgres, so they are not part of this set. Use your cloud console (CloudWatch, Cloud Monitoring, Azure Monitor) for those until Ryvn collects them directly.Per-cloud notes
Amazon RDS
Amazon RDS
The monitoring role is created by the database’s master user (
rds_superuser) and granted pg_monitor. All
metrics in the table above are available.Google Cloud SQL
Google Cloud SQL
The monitoring role is created by the master user (
cloudsqlsuperuser) and granted pg_monitor. All metrics in
the table above are available.Azure Flexible Server
Azure Flexible Server
The monitoring role is created by the master user (
azure_pg_admin) and granted pg_monitor. All metrics in the
table above are available.Querying the metrics yourself
Every series carries theenvironment label and an installation label set to the database installation, not to
the exporter that produced it. To chart connections for a database named orders-db in Grafana:
postgres_exporter, so
community dashboards work with the addition of an installation filter.