Skip to content

nvme: add namespace parameters#3360

Open
ShashwatHiregoudar wants to merge 18 commits intoprometheus:masterfrom
ShashwatHiregoudar:master
Open

nvme: add namespace parameters#3360
ShashwatHiregoudar wants to merge 18 commits intoprometheus:masterfrom
ShashwatHiregoudar:master

Conversation

@ShashwatHiregoudar
Copy link

Improvement of the NVMe collector in node-exporter, to include the below-mentioned NVMe namespace-specific parameters NUSE
NCAP
NSZE
LBA Size
ANA State

Signed-off-by: Shashwat Hiregoudar <shashwathiregoudar@gmail.com>
Signed-off-by: Shashwat Hiregoudar <shashwathiregoudar@gmail.com>
@ShashwatHiregoudar
Copy link
Author

cc:
@SuperQ
@discordianfish

@discordianfish
Copy link
Member

Could you try to add tests for the new metrics?

Signed-off-by: Shashwat Hiregoudar <shashwathiregoudar@gmail.com>
Signed-off-by: Shashwat Hiregoudar <shashwathiregoudar@gmail.com>
Signed-off-by: Shashwat Hiregoudar <shashwathiregoudar@gmail.com>
@ShashwatHiregoudar
Copy link
Author

I have updated the fixtures and the output.txt.
@discordianfish @SuperQ
Please suggest additional edits if needed.

@discordianfish
Copy link
Member

Seems reasonable but parsing should go into the prometheus/procfs module

@ShashwatHiregoudar
Copy link
Author

Ok 👍

prometheus/procfs#765
This PR should do it.

please approve it

@ShashwatHiregoudar
Copy link
Author

ShashwatHiregoudar commented Nov 20, 2025

After they are merged, i can apply this patch and update the go.mod file with the new release tag
procfs.patch

@ShashwatHiregoudar
Copy link
Author

hi @discordianfish
can you please ask Ben Kochie to approve the above mentioned procfs-PR.

It's been a while.

@discordianfish discordianfish requested a review from SuperQ January 16, 2026 10:37
Copy link
Member

@discordianfish discordianfish left a comment

Choose a reason for hiding this comment

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

Oops, sorry - right still needs prometheus/procfs#765 first

Shashwat Hiregoudar and others added 2 commits February 28, 2026 23:03
refactor: use updated  library to collect NVMe namespace metrics directly from structured data instead of manual sysfs parsing.
Signed-off-by: Shashwat Hiregoudar <shashwat.h@flipkart.com>
go mod tidy

Signed-off-by: Shashwat Hiregoudar <shashwathiregoudar@gmail.com>
@ShashwatHiregoudar
Copy link
Author

@SuperQ can you please create a new release in procfs,
I am currently using the go mod by the commit id, but the correct way would be by release.

@SuperQ
Copy link
Member

SuperQ commented Feb 28, 2026

I cut a new procfs version a few hours ago.

Updated the version of github.com/prometheus/procfs to v0.20.1.

Signed-off-by: Shashwat Hiregoudar <shashwathiregoudar@gmail.com>
Signed-off-by: Shashwat Hiregoudar <shashwathiregoudar@gmail.com>
Signed-off-by: Shashwat Hiregoudar <shashwathiregoudar@gmail.com>
ShashwatHiregoudar and others added 2 commits March 2, 2026 14:09
Co-authored-by: Ben Kochie <superq@gmail.com>
Signed-off-by: Shashwat Hiregoudar <shashwathiregoudar@gmail.com>
@ShashwatHiregoudar ShashwatHiregoudar force-pushed the master branch 2 times, most recently from ae708b5 to cfd51ce Compare March 3, 2026 08:04
Signed-off-by: Shashwat Hiregoudar <shashwathiregoudar@gmail.com>
Signed-off-by: Shashwat Hiregoudar <shashwathiregoudar@gmail.com>
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