prometheus / procfs

procfs provides functions to retrieve system, kernel and process metrics from the pseudo-filesystem proc.
Apache License 2.0
769 stars 317 forks source link

Fix parsing NSpids field in /proc/{PID}/status #648

Closed timuralp closed 2 months ago

timuralp commented 3 months ago

The NSpids field uses a tab (\t) to separate the list of PIDs. The procfs parser should split on \t, rather than space. This was not caught because the test fixtures themselves used the space character.

The patch updates the parser, the fixtures, and adds an explicit test for NSpids.