You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Request to add label for mount point to mountstats #2097
Currently the labels for NFS metrics from mountstats are "export", "protocol", "mountaddr"
I'm requesting that another label be added, the mountpoint on the NFS client.
For example if /proc/self/mountstats had the following device info: device myhostname.com:/exports/example mounted on /auto/example with fstype nfs statvers=1.1
I'd like to have a label: mountpoint: /auto/example, in addition to the label export: myhostname.com:/exports/example
By bizarre synchronicity I was actually working on a patch for this before I was aware of this issue. Hopefully the PR above will either resolve this or at least prove helpful.
The question how to solve this is afaik still open. We didn't want to include all mountpoints if the stats are possibly the same, see @SuperQ's comment here: #2676 (comment)
Re-reading @SuperQ's earlier comment, I think the main unresolved question is whether the kernel is actually exposing meaningfully distinct mountstats per mountpoint, or whether multiple mountpoints are often just aliases of the same underlying stats.
My current PR assumes the former, so it changes the existing node_mountstats_nfs_* metrics in a way that could increase cardinality quite a bit for automount-style setups.
I also don’t think trying to detect “same vs different” based on the current metric values would be a robust approach.
Given that, would you prefer I rework this toward an additive node_mountstats_nfs_mountpoint_info metric while keeping the existing stats deduped, or would you rather leave this until there’s a concrete real-world case showing that the per-mountpoint stats are actually distinct and worth exposing on the stats metrics themselves?
I’m happy to adjust the PR once the intended direction is clear.
Thanks @Vedant-Mhatre, when last I looked into this my testing showed that the actual stats were identical between different mountpoints. Hence why we currently do not have the label. If we have evidence to the contrary we can for sure change our minds and have per-mountpoint metrics.
For now, I think we should go the node_mountstats_nfs_mountpoint_info route.
We need someone with real-world setups to provide data to act on.
Activity
discordianfish commentedon Jul 26, 2021
Yeah agree, this should have a mountpoint label.
SuperQ commentedon Jul 28, 2021
Did we have something like this previously, but removed it to avoid duplicate metrics?
jgauth commentedon Jul 28, 2021
Looks like it: 5a6db5c
Can we include the mountpoint label, while also skipping duplicates?
SuperQ commentedon Jul 29, 2021
Yea, that seems reasonable. Pick first one, ignore the rest, is that good enough?
conallob commentedon Apr 26, 2023
I would like to work on this, unless there is already someone actively working on it
jgauth commentedon May 1, 2023
@conallob Please feel free to pick up where I left off - #2102
dsnt02518 commentedon May 2, 2023
By bizarre synchronicity I was actually working on a patch for this before I was aware of this issue. Hopefully the PR above will either resolve this or at least prove helpful.
conallob commentedon May 2, 2023
I'll take a look at #2102 and try to get a PR out this week
conallob commentedon May 17, 2023
@dsnt02518 Since you have #2676 already open, I'll leave this to you
michael-duren commentedon Nov 22, 2025
Is this still in need of being completed? I'm looking for a first issue to contribute to.
Vedant-Mhatre commentedon Feb 23, 2026
I opened a PR for this: #3554.
Implemented:
mountpointlabel tomountstatsNFS metricsI noticed older PR #2676 is still open but inactive (last updated November 20, 2023), so this PR is intended as a fresh/updated attempt.
Happy to adjust if maintainers prefer a different direction.
If someone already has an in-progress solution, I’m happy to coordinate.
discordianfish commentedon Feb 25, 2026
The question how to solve this is afaik still open. We didn't want to include all mountpoints if the stats are possibly the same, see @SuperQ's comment here: #2676 (comment)
Vedant-Mhatre commentedon Mar 6, 2026
Thanks, that makes sense.
Re-reading @SuperQ's earlier comment, I think the main unresolved question is whether the kernel is actually exposing meaningfully distinct mountstats per mountpoint, or whether multiple mountpoints are often just aliases of the same underlying stats.
My current PR assumes the former, so it changes the existing
node_mountstats_nfs_*metrics in a way that could increase cardinality quite a bit for automount-style setups.I also don’t think trying to detect “same vs different” based on the current metric values would be a robust approach.
Given that, would you prefer I rework this toward an additive
node_mountstats_nfs_mountpoint_infometric while keeping the existing stats deduped, or would you rather leave this until there’s a concrete real-world case showing that the per-mountpoint stats are actually distinct and worth exposing on the stats metrics themselves?I’m happy to adjust the PR once the intended direction is clear.
SuperQ commentedon Mar 6, 2026
Thanks @Vedant-Mhatre, when last I looked into this my testing showed that the actual stats were identical between different mountpoints. Hence why we currently do not have the label. If we have evidence to the contrary we can for sure change our minds and have per-mountpoint metrics.
For now, I think we should go the
node_mountstats_nfs_mountpoint_inforoute.We need someone with real-world setups to provide data to act on.
Vedant-Mhatre commentedon Mar 6, 2026
Thanks, that gives me a clear direction.
I’ll rework #3554 to keep the existing
node_mountstats_nfs_*metrics deduped and add an additivenode_mountstats_nfs_mountpoint_infometric instead.Priyanshuraturi28 commentedon Jun 10, 2026
Hi! I'd like to work on this. I'll add the mountpoint label to mountstats metrics. Could someone assign this to me?
agbanagba commentedon Nov 8, 2026
I was hoping to work on this but I believe this issue has been fixed in #3554. May be good to close it.