postgresql.backends | sum | int | 1 | development | yes | db.namespace (string) | The number of backend processes associated with each database. Counts backends across all connection states (active, idle, idle-in-transaction) and all backend types, including non-client backends such as autovacuum and parallel workers. |
postgresql.bgwriter.buffers.allocated | sum (monotonic) | int | {buffers} | development | yes | | Number of buffers allocated. |
postgresql.bgwriter.buffers.writes | sum (monotonic) | int | {buffers} | development | yes | bg_buffer_source (string) | Number of buffers written. |
postgresql.bgwriter.checkpoint.count | sum (monotonic) | int | {checkpoints} | development | yes | bg_checkpoint_type (string) | The number of checkpoints performed. |
postgresql.bgwriter.duration | sum (monotonic) | double | ms | development | yes | bg_duration_type (string) | Total time spent writing and syncing files to disk by checkpoints. |
postgresql.bgwriter.maxwritten | sum (monotonic) | int | 1 | development | yes | | Number of times the background writer stopped a cleaning scan because it had written too many buffers. |
postgresql.blks_hit | sum (monotonic) | int | {blks_hit} | development | no | db.namespace (string) | Number of times disk blocks were found already in the buffer cache. |
postgresql.blks_read | sum (monotonic) | int | {blks_read} | development | no | db.namespace (string) | Number of disk blocks read in this database. |
postgresql.blocks_read | sum (monotonic) | int | 1 | development | yes | db.collection.name (string), db.namespace (string), source (string) | The number of blocks read. |
postgresql.commits | sum (monotonic) | int | 1 | development | yes | db.namespace (string) | The number of commits. |
postgresql.connection.max | gauge | int | {connections} | development | yes | | Configured maximum number of client connections allowed |
postgresql.database.count | sum | int | {databases} | development | yes | | Number of user databases. |
postgresql.database.locks | gauge | int | {lock} | development | no | db.namespace (string), lock_type (string), mode (string), relation (string) | The number of database locks. |
postgresql.db_size | sum | int | By | development | yes | db.namespace (string) | The database disk usage. |
postgresql.deadlocks | sum (monotonic) | int | {deadlock} | development | no | db.namespace (string) | The number of deadlocks. |
postgresql.function.calls | sum (monotonic) | int | {call} | development | no | db.namespace (string), function (string) | The number of calls made to a function. Requires track_functions=pl|all in Postgres config. |
postgresql.index.scans | sum (monotonic) | int | {scans} | development | yes | db.collection.name (string), db.namespace (string), postgresql.index.name (string) | The number of index scans on a table. |
postgresql.index.size | gauge | int | By | development | yes | db.collection.name (string), db.namespace (string), postgresql.index.name (string) | The size of the index on disk. |
postgresql.operations | sum (monotonic) | int | 1 | development | yes | db.collection.name (string), db.namespace (string), operation (string) | The number of db row operations. |
postgresql.query.conflicts | sum (monotonic) | int | {query} | development | no | db.namespace (string), postgresql.conflict.type (string) | Number of queries canceled due to conflicts with recovery on this database. Conflicts only occur on standby servers; this metric will be zero on primary servers. |
postgresql.query.execution.time | sum (monotonic) | double | s | development | no | db.namespace (string) | The total execution time of SQL statements currently tracked by pg_stat_statements for the database. |
postgresql.replication.data_delay | gauge | int | By | development | yes | replication_client (string) | The amount of data delayed in replication. |
postgresql.rollbacks | sum (monotonic) | int | 1 | development | yes | db.namespace (string) | The number of rollbacks. |
postgresql.rows | sum | int | 1 | development | yes | db.collection.name (string), db.namespace (string), state (string) | The number of rows in the database. |
postgresql.sequential_scans | sum (monotonic) | int | {sequential_scan} | development | no | db.collection.name (string), db.namespace (string) | The number of sequential scans. |
postgresql.table.count | sum | int | {table} | development | yes | db.namespace (string) | Number of user tables in a database. |
postgresql.table.size | sum | int | By | development | yes | db.collection.name (string), db.namespace (string) | Disk space used by a table. |
postgresql.table.vacuum.count | sum (monotonic) | int | {vacuum} | development | yes | db.collection.name (string), db.namespace (string) | Number of times a table has manually been vacuumed. |
postgresql.temp.io | sum (monotonic) | int | By | development | no | db.namespace (string) | Total amount of data written to temporary files by queries. |
postgresql.temp_files | sum (monotonic) | int | {temp_file} | development | no | db.namespace (string) | The number of temp files. |
postgresql.tup_deleted | sum (monotonic) | int | {tup_deleted} | development | no | db.namespace (string) | Number of rows deleted by queries in the database. |
postgresql.tup_fetched | sum (monotonic) | int | {tup_fetched} | development | no | db.namespace (string) | Number of rows fetched by queries in the database. |
postgresql.tup_inserted | sum (monotonic) | int | {tup_inserted} | development | no | db.namespace (string) | Number of rows inserted by queries in the database. |
postgresql.tup_returned | sum (monotonic) | int | {tup_returned} | development | no | db.namespace (string) | Number of rows returned by queries in the database. |
postgresql.tup_updated | sum (monotonic) | int | {tup_updated} | development | no | db.namespace (string) | Number of rows updated by queries in the database. |
postgresql.vector.insert.duration | sum (monotonic) | double | s | development | no | db.namespace (string) | The cumulative execution time of statements that insert vectors into pgvector tables. Requires the pg_stat_statements extension, PostgreSQL 13 or later, and the pgvector extension in the scanned database. |
postgresql.vector.insert.rows | sum (monotonic) | int | {vectors} | development | no | db.namespace (string) | The number of vectors inserted into pgvector tables. Requires the pg_stat_statements extension, PostgreSQL 13 or later, and the pgvector extension in the scanned database. |
postgresql.vector.search.calls | sum (monotonic) | int | {search} | development | no | db.namespace (string), postgresql.distance.function.name (string) | The number of vector similarity search operations executed, grouped by the distance function used. Requires the pg_stat_statements extension, PostgreSQL 13 or later, and the pgvector extension in the scanned database. The l1, hamming, and jaccard distance functions additionally require pgvector 0.7.0 or later. |
postgresql.vector.search.duration | sum (monotonic) | double | s | development | no | db.namespace (string), postgresql.distance.function.name (string) | The cumulative execution time of vector similarity searches, grouped by the distance function used. Requires the pg_stat_statements extension, PostgreSQL 13 or later, and the pgvector extension in the scanned database. The l1, hamming, and jaccard distance functions additionally require pgvector 0.7.0 or later. |
postgresql.vector.search.rows_returned | sum (monotonic) | int | {rows} | development | no | db.namespace (string), postgresql.distance.function.name (string) | The cumulative number of rows returned by vector similarity searches, grouped by the distance function used. Requires the pg_stat_statements extension, PostgreSQL 13 or later, and the pgvector extension in the scanned database. The l1, hamming, and jaccard distance functions additionally require pgvector 0.7.0 or later. |
postgresql.wal.age | gauge | int | s | development | yes | | Age of the oldest WAL file. This metric requires WAL to be enabled with at least one replica. |
postgresql.wal.delay | gauge | double | s | development | no | replication_client (string), wal_operation_lag (string) | Time between flushing recent WAL locally and receiving notification that the standby server has completed an operation with it. This metric requires WAL to be enabled with at least one replica. |
postgresql.wal.lag | gauge | int | s | development | yes | replication_client (string), wal_operation_lag (string) | Time between flushing recent WAL locally and receiving notification that the standby server has completed an operation with it. This metric requires WAL to be enabled with at least one replica. |