Skip to content

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

Merged
discordianfish merged 1 commit intoprometheus:masterfrom
timuralp:fix-nspid
Jul 14, 2024
Merged

Fix parsing NSpids field in /proc/{PID}/status#648
discordianfish merged 1 commit intoprometheus:masterfrom
timuralp:fix-nspid

Conversation

@timuralp
Copy link
Contributor

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.

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.

Signed-off-by: Timur Alperovich <timur.alperovich@databricks.com>
Copy link
Member

@SuperQ SuperQ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@SuperQ SuperQ requested a review from discordianfish June 19, 2024 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants