CrunchyData / pgnodemx

A PostgreSQL extension that provides SQL functions to allow capture of node OS metrics via SQL queries.
Apache License 2.0
49 stars 11 forks source link

cgroup ordering change causes errors #1

Closed jkatz closed 3 years ago

jkatz commented 3 years ago

Reported in CrunchyData/postgres-operator#2037:

$ cat /proc/self/cgroup:
...
6:cpuacct,cpu:/kubepods.slice/...
...

vs.

$ ls -l /sys/fs/cgroup/ :
lrwxrwxrwx 1 root root 11 Nov 23 09:23 cpu -> cpu,cpuacct
lrwxrwxrwx 1 root root 11 Nov 23 09:23 cpuacct -> cpu,cpuacct
drwxr-xr-x 2 root root 0 Nov 23 09:23 cpu,cpuacct

The change in ordering causes pgnodemx to fail to grab particularly metrics. In the Postgres Operator, this manifests as the inability to scrape these metrics and make them available in the crunchy-postgres-exporter.

jconway commented 3 years ago

Fixed in 1.0.2