Bug 2307514 - nfsd metrics do not work on RHEL 9
Summary: nfsd metrics do not work on RHEL 9
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: golang-github-prometheus-node-exporter
Version: epel9
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Mark E. Fuller
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-08-23 09:34 UTC by Marcel Freundl
Modified: 2025-08-05 00:27 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-08-05 00:27:21 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github prometheus node_exporter pull 2810 0 None Merged NFSd: handle new wdeleg_getattr attribute in /proc/net/rpc/nfsd 2024-08-23 09:34:18 UTC

Description Marcel Freundl 2024-08-23 09:34:19 UTC
Description of problem:
On a RHEL 9 server with nfsd running and exported shares node-exporter does not export metrics for nfsd (/proc/net/rpc/nfsd).
In the node-exporter logs this error is shown:
prometheus-node-exporter[2997840]: ts=2024-08-23T08:38:36.096Z caller=collector.go:169 level=error msg="collector failed" name=nfsd duration_seconds=0.00077765 err="failed to retrieve nfsd stats: unknown NFSd metric line \"wdeleg_getattr\""

This issue seems to already be fixed upstream with release 1.8.0: https://github.com/prometheus/node_exporter/pull/2810



Version-Release number of selected component (if applicable):
golang-github-prometheus-node-exporter-1.3.1-5.el9.x86_64

How reproducible:
Configure an nfs export on RHEL 9 and install node-exporter
The nfsd collector is enabled by default in node-exporter


Actual results:
No nfsd metrics are exported


Expected results:
nfsd collector works and the metrics are exported

Comment 1 Mikel Olasagasti Uranga 2024-08-24 14:22:54 UTC
That fix is available for Fedora in the `node-exporter` package.

The package `golang-github-prometheus-node-exporter` has been deprecated and `node-exporter` will be the new package.

**BUT** the current only available package for EPEL9 is the old `golang-github-prometheus-node-exporter` that was a vendored build. A new solution is on the works[1] that will help to update the package for EPEL and automaticaly `golang-github-prometheus-node-exporter` will be replaced with `node-exporter`. Updating the package manually without the new method is something I want to avoid.

[1] https://gitlab.com/fedora/sigs/go/go-vendor-tools/-/issues/10

Comment 2 Fedora Update System 2025-07-27 14:19:12 UTC
FEDORA-EPEL-2025-72356603ed (node-exporter-1.9.1-2.el9) has been submitted as an update to Fedora EPEL 9.
https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2025-72356603ed

Comment 3 Fedora Update System 2025-07-28 01:01:29 UTC
FEDORA-EPEL-2025-72356603ed has been pushed to the Fedora EPEL 9 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2025-72356603ed

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 4 Fedora Update System 2025-08-05 00:27:21 UTC
FEDORA-EPEL-2025-72356603ed (node-exporter-1.9.1-2.el9) has been pushed to the Fedora EPEL 9 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.