postmaster collector exposes the PostgreSQL server start time.
Status
Default: Disabled Enable with:--collector.postmaster
Metrics
pg_postmaster_start_time_seconds
Type: GaugeDescription: Time at which postmaster started (Unix timestamp) Labels: None
SQL Query
PostgreSQL Versions
Supported: PostgreSQL 9.1+ Thepg_postmaster_start_time() function was introduced in PostgreSQL 9.1.
Required Permissions
The monitoring user needs:- Execute permission on
pg_postmaster_start_time()function (granted toPUBLICby default)