select open change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

Extensions / Monitoring

pg_metrics

Collects named counters from PostgreSQL backends in shared memory and exposes them through SQL metric functions.

pgext.cloud · Source code · Control file

Overview

Packagepg_metrics
Version1.0
RepositoryUnspecified
Extension typePreloaded
Requires CREATE EXTENSIONYes
Requires preloadYes
TrustedNo
RelocatableYes
Shared librariespg_metrics
Stars2
Latest commit2016-09-22
Catalogue updated2026-08-30

Related extensions

See also

pgmonitorCollector-friendly metric views and background refresh worker
pg_mem_countersMaintains named total and requests-per-minute counters in PostgreSQL shared memory.
query_histogramCollects shared-memory histograms of statement and transaction runtimes through executor and utility hooks.
pgfr_recordServer-side PostgreSQL performance flight recorder
memstatMemory context statistics for local and instance backends
dbstatCollects exact table row counts and modification timing through SQL objects and a companion libpq process.
pgsamplerExperimental PostgreSQL background worker that collects time-series status and performance metrics.
pg_sessionsTracks per-session SQL execution metrics and optional Linux process resource statistics in shared memory.