
Extend the platform,
empower your team.


PostgreSQL
Monitor your Postgres performance via our new EF2.0 extension framework.
ExtensionPostgresSQL monitoring solution is based on a remote monitoring approach implemented as a Dynatrace ActiveGate extension. The extension queries Postgres databases for key performance and health. Dynatrace's DAVIS AI then analyzes these metrics to provide anomaly and problem analysis.
The extension is designed to work with PostgreSQL version 11 and later.
Below is a complete list of the feature sets provided in this version. To ensure a good fit for your needs, individual feature sets can be activated and deactivated by your administrator during configuration.
| Metric name | Metric key | Description | Unit |
|---|---|---|---|
| Instance uptime | postgres.uptime | Time since the instance has been started | Second |
| Metric name | Metric key | Description | Unit |
|---|---|---|---|
| Tablespace size | postgres.tablespace.size | Tablespace size in bytes | Byte |
| Metric name | Metric key | Description | Unit |
|---|---|---|---|
| Instance recovery mode | postgres.recovery.state | Indicate that the instance is in recovery mode. 1 if in recovery, 0 otherwise. | State |
| Metric name | Metric key | Description | Unit |
|---|---|---|---|
| Active backend processes | postgres.activity.active | Number of server processes executing a query | Count |
| Idle backend processes | postgres.activity.idle | Number of server processes waiting for a new client command | Count |
| Idle in transaction backends processes | postgres.activity.idle_in_transaction | Number of server processes in transaction not currently executing a query | Count |
| Idle in transaction aborted backends processes | postgres.activity.idle_in_transaction_aborted | Number of server processes in transaction not currently executing a query where one of the statements caused an error | Count |
| Fast-path function backend processes | postgres.activity.fastpath_function_call | Number of server processes executing a fast-path function call | Count |
| Metric name | Metric key | Description | Unit |
|---|---|---|---|
| WAL diff size | postgres.wal_diff_size | Size of difference between current WAL and last WAL replay | Byte |
| WAL records per minute | postgres.wal_records.count | Number of WAL records generated per minute | Count |
| WAL fpi per minute | postgres.wal_fpi.count | Number of WAL full page images generated per minute | Count |
| WAL bytes | postgres.wal_bytes.count | Total amount of WAL generated in bytes | Count |
| WAL buffers full | postgres.wal_buffers_full.count | Number of times WAL data was written to disk because WAL buffers became full | Count |
| WAL write | postgres.wal_write.count | Number of times WAL buffers were written out to disk via XLogWrite request | Count |
| WAL sync | postgres.wal_sync.count | Number of times WAL files were synced to disk via issue_xlog_fsync request | Count |
| WAL write time | postgres.wal_write_time.count | Total amount of time spent writing WAL buffers to disk via XLogWrite request, in milliseconds | MilliSecond |
| WAL sync time | postgres.wal_sync_time.count | Total amount of time spent syncing WAL files to disk via issue_xlog_fsync request, in milliseconds | MilliSecond |
| Metric name | Metric key | Description | Unit |
|---|---|---|---|
| Replication WAL restart delay | postgres.replication.restart_delay | Difference between current WAL LSN and the restart_lsn as reported by pg_replication_slots | Byte |
| Replication WAL confirmed flush lag | postgres.replication.confirmed_flush_lag | Difference between current WAL LSN and the confirmed_flush_lsn as reported by pg_replication_slots | Byte |
| Replication WAL write lag | postgres.replication.write_lag | Time elapsed between flushing recent WAL locally and receiving notification that this standby server has written it, as reported by pg_stat_replication. | Second |
| Replication WAL flush lag | postgres.replication.flush_lag | Time elapsed between flushing recent WAL locally and receiving notification that this standby server has written and flushed it, as reported by pg_stat_replication. | Second |
| Replication WAL replay lag | postgres.replication.replay_lag | Time elapsed between flushing recent WAL locally and receiving notification that this standby server has written, flushed and applied it, as reported by pg_stat_replication. | Second |
| Metric name | Metric key | Description | Unit |
|---|---|---|---|
| Number of locks | postgres.locks | Number of locks as reported by pg_locks | Count |
| Metric name | Metric key | Description | Unit |
|---|---|---|---|
| Scheduled checkpoints performed | postgres.checkpoints_timed.count | Number of scheduled checkpoints that have been performed | Count |
| Requested checkpoints performed | postgres.checkpoints_req.count | Number of requested checkpoints that have been performed | Count |
| Checkpoints write time | postgres.checkpoint_write_time.count | Total amount of time that has been spent in the portion of checkpoint processing where files are written to disk | MilliSecond |
| Checkpoint sync time | postgres.checkpoint_sync_time.count | Total amount of time that has been spent in the portion of checkpoint processing where files are synchronized to disk | MilliSecond |
| Buffers written during checkpoints | postgres.buffers_checkpoint.count | Number of buffers written during checkpoints | Count |
| Buffers written by background writer | postgres.buffers_clean.count | Number of buffers written by the background writer | Count |
| Cleaning scan stops | postgres.maxwritten_clean.count | Number of times the background writer stopped a cleaning scan because it had written too many buffers | Count |
| Buffers written by backend | postgres.buffers_backend.count | Number of buffers written directly by a backend | Count |
| Backend fsync executions | postgres.buffers_backend_fsync.count | Number of times a backend had to execute its own fsync call | Count |
| Buffers allocated | postgres.buffers_alloc.count | Number of buffers allocated | Count |
| Metric name | Metric key | Description | Unit |
|---|---|---|---|
| Latest transaction XID age | postgres.xid_age | Difference between the current transaction's XID and datfrozenxid. If this value exceeds 2^31, this can cause a database crash due to transaction ID wraparound. | Count |
| Number of backends | postgres.numbackends | Number of backends currently connected to this database | Count |
| Committed transactions | postgres.xact_commit.count | Number of transactions in this database that have been committed | Count |
| Rolled back transactions | postgres.xact_rollback.count | Number of transactions in this database that have been rolled back | Count |
| Block read from disk | postgres.blks_read.count | Number of disk blocks read in this database | Count |
| Blocks found in buffer cache | postgres.blks_hit.count | Number of times disk blocks were found already in the buffer cache, so that a read was not necessary | Count |
| Live rows returned | postgres.tup_returned.count | Number of live rows fetched by sequential scans and index entries returned by index scans in this database | Count |
| Live rows fetched by index scans | postgres.tup_fetched.count | Number of live rows fetched by index scans in this database | Count |
| Rows inserted | postgres.tup_inserted.count | Number of rows inserted by queries in this database | Count |
| Rows updated | postgres.tup_updated.count | Number of rows updated by queries in this database | Count |
| Rows deleted | postgres.tup_deleted.count | Number of rows deleted by queries in this database | Count |
| Queries canceled due to conflict | postgres.conflicts.count | Number of queries canceled due to conflicts with recovery in this database | Count |
| Temporary files created | postgres.temp_files.count | Number of temporary files created by queries in this database | Count |
| Data written to temporary files | postgres.temp_bytes.count | Total amount of data written to temporary files by queries in this database | Byte |
| Deadlocks | postgres.deadlocks.count | Number of deadlocks detected in this database | Count |
| Data file blocks reading time | postgres.blk_read_time.count | Time spent reading data file blocks by backends in this database | MilliSecond |
| Data file blocks writing time | postgres.blk_write_time.count | Time spent writing data file blocks by backends in this database | MilliSecond |
| Database Size | postgres.db_size | Size of the database in bytes | Byte |
| Data page checksum failures | postgres.checksum_failures.count | Number of data page checksum failures detected in this database. Only available if data checksums are enabled. | Count |
| Time spent by sessions | postgres.session_time.count | Time spent by database sessions in this database | MilliSecond |
| Time spent executing SQL statements | postgres.active_time.count | Time spent executing SQL statements in this database | MilliSecond |
| Time spent idling | postgres.idle_in_transaction_time.count | Time spent idling while in a transaction in this database | MilliSecond |
| Established sessions | postgres.sessions.count | Total number of sessions established | Count |
| Abandoned sessions | postgres.sessions_abandoned.count | Number of database sessions to this database that were terminated because connection to the client was lost | Count |
| Fatal error terminated sessions | postgres.sessions_fatal.count | Number of database sessions to this database that were terminated by fatal errors | Count |
| Killed sessions | postgres.sessions_killed.count | Number of database sessions to this database that were terminated by operator intervention | Count |
Features
Bugfixes
Bugfixes
Features
Bugfixes
Features
Configuration query interval (minutes) variable. This data will be available soon in the Databases App.Replication which collects replication lag metrics, postgres.replication.*.Locks which collects lock related metrics as well as information about blocking statements in the form of logs.postgres.db_size.postgres.xid_age.Enhancements
pg_stat_activity data to obtain wait event times.ℹ️ This version requires ActiveGate version 1.301.0 or higher.
Features:
SAME_AS relationship will be established between the sql:postgres_instance and the corresponding PROCESS_GROUP_INSTANCE.ℹ️ This version requires ActiveGate version 1.301.0 or higher.
Bug fixes:
ℹ️ This version requires ActiveGate version 1.301.0 or higher.
Bug fixes:
heavy-query-interval variable's default value would not be set correctly.Bug fixes:
Features:
query-interval and heavy-query-interval, which control the frequency with which the Dynatrace queries the database/ingests data. Please see the FAQ section for more details.Bugfixes:
ℹ️ This version requires ActiveGate version 1.293.0 or higher.
Improvements
ALTER statements for security reasons.Bugfixes:
ℹ️ This version requires ActiveGate version 1.293.0 or higher.
WARNING This extension requires minimum ActiveGate version 1.293. Please check your version before upgrading.
Bugfixes:
pg_stat_statements for PostgreSQL 13.WARNING This extension requires minimum ActiveGate version 1.293. Please check your version before upgrading.
Features:
Getting started section on the hub tile for more details on how to set it up.Bug fixes:
Query duration as collected by longest_queries is now calculated as clock_timestamp() - query_start. Previously it was computed as now() - query_start which sometimes caused the query duration to be negative.
The reason behind this is that now() or CURRENT_TIMESTAMP represent the start of the transaction and an individual query within the transaction can start later. The clock_timestamp() however returns an actual system cpu clock and can change over the course of the transaction, producing a correct value to subtract query_start from to compute a valid duration.
Bug fixes:
postgres.blk_hit.count metric key to postgres.blks_hit.count to match official Postgres statistics collector name.Features:
endpoint_metadata attribute of sql:postgres_instance entities and can be used in entity selectors (to facilitate tagging, for example).Queries feature set will now collect queries (ingested as logs) from the pg_stat_statements table as well. These new logs can be queried by filtering by event_group = top_queries. Note that for this to work, the pg_stat_statements table needs to be enabled at the database level as per the official docs.Improvements:
pg_stat_activity is now collected for all activities, not just the ones associated with a specific datid. That adds monitoring for activites such as autovacuum worker.Improvements:
Bug fixes:
client_port dimension was removed from the following metrics, because the field bring no valuable information and is too volatile, causing too many distinct timeseries to be generated.
postgres.activity.activepostgres.activity.fastpath_function_callpostgres.activity.idle_in_transaction_abortedpostgres.activity.idle_in_transactionpostgres.activity.idleBreaking changes: Existing monitoring configurations must be recreated through API or manually
New features:
Bug fixes:
Fix for schema change
No release notes