Skip to content

collector/mountstats: add mountpoint label to NFS metrics#3690

Open
shravyavorugallu wants to merge 1 commit into
prometheus:masterfrom
shravyavorugallu:add-mountpoint-label-to-mountstats
Open

collector/mountstats: add mountpoint label to NFS metrics#3690
shravyavorugallu wants to merge 1 commit into
prometheus:masterfrom
shravyavorugallu:add-mountpoint-label-to-mountstats

Conversation

@shravyavorugallu

Copy link
Copy Markdown

Closes #2097

The mountstats NFS collector exports metrics labelled by export (the NFS server path), protocol, and mountaddr. When the same NFS server exports the same path to multiple local mount points the label set is ambiguous.

This change adds a mountpoint label sourced from procfs.Mount.Mount (the local mount point path, e.g. /home or /scratch). The label is threaded through updateNFSStats() and applied to all three metric families: base, transport, and per-operation.

No behaviour changes for existing single-mount configurations.
Signed-off-by: Shravya Vorugallu Shravyavorugallu@gmail.com

Closes prometheus#2097

The mountstats NFS collector exports metrics labelled by `export`
(the NFS server path), `protocol`, and `mountaddr`. When the same
NFS server exports the same path to multiple local mount points the
label set is ambiguous.

This change adds a `mountpoint` label sourced from `procfs.Mount.Mount`
(the local mount point path, e.g. /home or /scratch). The label is
threaded through updateNFSStats() and applied to all three metric
families: base, transport, and per-operation.

No behaviour changes for existing single-mount configurations.
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.

Request to add label for mount point to mountstats

1 participant