pgnodemx
Overview
| Package | Version | Category | License | Language |
|---|---|---|---|---|
pgnodemx | 2.0.1 | STAT | Apache-2.0 | C |
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 6440 | pgnodemx | No | Yes | Yes | Yes | No | Yes | - |
| 6450 | pg_proctab | No | Yes | No | Yes | No | Yes | - |
| Related | system_stats pgmonitor pg_stat_ch pgsentinel pg_datasentinel pg_stat_kcache pgmeminfo pgbouncer_fdw pgpool_adm |
|---|
Package/source version 2.0.1 ships SQL/control version 2.0. PIGSTY RPM and PGDG DEB cover PostgreSQL 14-18 and also ship the pg_proctab compatibility stub; the release tarball reports pgnodemx_version() as none. shared_preload_libraries=pgnodemx is required.
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | PIGSTY | 2.0.1 | 1817161514 | pgnodemx | - |
| RPM | PIGSTY | 2.0.1 | 1817161514 | pgnodemx_$v | - |
| DEB | PGDG | 2.0.1 | 1817161514 | postgresql-$v-pgnodemx | - |
Build
You can build the RPM / DEB packages for pgnodemx using pig build:
Install
You can install pgnodemx directly. First, make sure the PGDG and PIGSTY repositories are added and enabled:
Install the extension using pig or apt/yum/dnf:
Preload:
Create Extension:
Usage
pgnodemx: SQL functions to access node OS metrics from PostgreSQL
pgnodemx provides SQL access to OS-level metrics including cgroup statistics, /proc filesystem data, and system information. Requires pg_monitor role membership.
cgroup Functions
/proc Functions
System Information
Environment Variables
Kubernetes DownwardAPI
Configuration
| Parameter | Default | Description |
|---|---|---|
pgnodemx.cgroup_enabled | on | Enable cgroup functions |
pgnodemx.containerized | off | Force containerized cgroup paths |
pgnodemx.cgrouproot | /sys/fs/cgroup | cgroup mount location |
pgnodemx.kdapi_enabled | on | Enable Kubernetes DownwardAPI |
pgnodemx.kdapi_path | /etc/podinfo | DownwardAPI files location |
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)