--- title: PostgreSQL metrics description: The following tables list and describe the metrics that are gathered as output from the specified PostgreSQL checks. Entries indicated as Featured metrics are high-visibility metrics that are displayed in the Operator Workspace Metric tab after an alert is generated. These metrics provide the operator with additional information to help them further explore the specified issue. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/it-operations-management/agent-client-collector/postgresql-metrics.html release: australia product: Agent Client Collector classification: agent-client-collector topic_type: reference last_updated: "2026-03-12" reading_time_minutes: 5 breadcrumb: [ACC-M default checks and policies, ACC-M reference, Agent Client Collector reference, Agent Client Collector, IT Operations Management] --- # PostgreSQL metrics The following tables list and describe the metrics that are gathered as output from the specified PostgreSQL checks. Entries indicated as **Featured metrics** are high-visibility metrics that are displayed in the Operator Workspace Metric tab after an alert is generated. These metrics provide the operator with additional information to help them further explore the specified issue.
| Metric | Description |
|---|---|
| pgsql.connections.active\(Featured metric\) | Provides metrics on the total active connections in the PostgreSQL database. |
| pgsql.connections.idle\(Featured metric\) | Provides metrics on the total idle connections on the PostgreSQL database. |
| Metric | Description |
|---|---|
| pgsql.db.size\(Featured metric\) | Provides metrics on the total disk size utilization for each of the PostgreSQL databases on the server. |
| Metric | Description |
|---|---|
| pgsql.tables\_size\(Featured metric\) | Provides metrics on the database table size on the server. |
| Metric | Description |
|---|---|
| pgsql.statsbgwriter.buffers\_alloc | Provides metrics related to the number of allocated buffers. |
| pgsql.statsbgwriter.buffers\_backend | Provides metrics related to the number of buffers written directly by a backend. |
| pgsql.statsbgwriter.buffers\_backend\_fsync | Provides metrics related to the number of times a backend executed its own fsync call. Normally the background writer handles these calls. |
| pgsql.statsbgwriter.buffers\_checkpoint | Provides metrics related to the number of buffers written during checkpoints. |
| pgsql.statsbgwriter.buffers\_clean | Provides metrics related to the number of buffers written by the background writer. |
| pgsql.statsbgwriter.checkpoint\_sync\_time | Provides metrics related to the total amount of time spent in the portion of checkpoint processing where files are synchronized to disk, in milliseconds. |
| pgsql.statsbgwriter.checkpoint\_write\_time | Provides metrics related to the total amount of time spent in the portion of checkpoint processing where files are written to disk, in milliseconds. |
| pgsql.statsbgwriter.checkpoints\_req\(Featured metric\) | Provides metrics related to the number of requested checkpoints that have been performed. |
| pgsql.statsbgwriter.checkpoints\_timed\(Featured metric\) | Provides metrics related to the number of scheduled checkpoints that have been performed. |
| pgsql.statsbgwriter.maxwritten\_clean | Provides metrics related to the number of times the background writer stopped a cleaning scan because it had written too many buffers. |
| Metric | Description |
|---|---|
| pgsql.statsdb.blk\_read\_time\(Featured metric\) | Provides metrics related to the time spent reading data file blocks by backends in this database, in milliseconds. |
| pgsql.statsdb.blk\_write\_time\(Featured metric\) | Provides metrics related to the time spent writing data file blocks by backends in this database, in milliseconds. |
| pgsql.statsdb.blks\_hit\(Featured metric\) | Provides metrics related to the number of times disk blocks were found in the buffer cache, so that a read was not necessary. This only includes hits in the PostgreSQL buffer cache, not the operating system's file system cache. |
| pgsql.statsdb.blks\_read | Provides metrics related to the number of disk blocks read in this database. |
| pgsql.statsdb.checksum\_failures | Provides metrics related to the number of data page checksum failures detected in this database \(or on a shared object\), or 0 if data checksums are not enabled. |
| pgsql.statsdb.conflicts | Provides metrics related to the number of queries canceled due to conflicts with recovery in this database. Conflicts occur only on standby servers. |
| pgsql.statsdb.deadlocks\(Featured metric\) | Provides metrics related to the number of deadlocks detected in this database. |
| pgsql.statsdb.numbackends | Provides metrics related to the number of backends currently connected to this database. This is the only column in this view that returns a value reflecting the current state; all other columns return the accumulated values since the last reset. |
| pgsql.statsdb.temp\_bytes | Provides metrics related to the total amount of data written to temporary files by queries in this database. All temporary files are counted, regardless of why the temporary file was created, and regardless of the **log\_temp\_files** setting. |
| pgsql.statsdb.temp\_files | Provides metrics related to the number of temporary files created by queries in this database. All temporary files are counted, regardless of why the temporary file was created \(such as sorting or hashing\), and regardless of the **log\_temp\_files** setting. |
| pgsql.statsdb.tup\_deleted | Provides metrics related to the number of rows deleted by queries in this database. |
| pgsql.statsdb.tup\_fetched | Provides metrics related to the number of rows fetched by queries in this database. |
| pgsql.statsdb.tup\_inserted | Provides metrics related to the number of rows inserted by queries in this database. |
| pgsql.statsdb.tup\_returned | Provides metrics related to the number of rows returned by queries in this database. |
| pgsql.statsdb.tup\_updated | Provides metrics related to the number of rows updated by queries in this database. |
| pgsql.statsdb.xact\_commit | Provides metrics related to the number of transactions in this database that have been committed. |
| pgsql.statsdb.xact\_rollback | Provides metrics related to the number of transactions in this database that have been rolled back. |
| Metric | Description |
|---|---|
| pgsql.statsio.heap\_blks\_hit\(Featured metric\) | Provides metrics related to the number of buffer hits in this table. |
| pgsql.statsio.heap\_blks\_read | Provides metrics related to the number of disk blocks read from this table. |
| pgsql.statsio.idx\_blks\_hit | Provides metrics related to the number of buffer hits in all indexes in this table. |
| pgsql.statsio.idx\_blks\_read | Provides metrics related to the number of disk blocks read from all indexes in this table. |
| pgsql.statsio.tidx\_blks\_hit | Provides metrics related to the number of buffer hits in this table's TOAST table index \(if any\). |
| pgsql.statsio.tidx\_blks\_read | Provides metrics related to the number of disk blocks read from this table's TOAST table index. |
| pgsql.statsio.toast\_blks\_hit | Provides metrics related to the number of buffer hits in this table's TOAST table \(if any\). |
| pgsql.statsio.toast\_blks\_read | Provides metrics related to the number of disk blocks read from this table's TOAST table \(if any\). |