Add mountpoint to mountstats collector.#2676
Conversation
|
You need to sign-off and fix the tests |
|
A
Apologies - missed the |
e0055e2 to
0ee67d3
Compare
This is useful for Hammerspace where the same 'device' may be mounted via the same protocol to differing locations, but is actually still a unique mount. Signed-off-by: Danny Smith <danny.j.smith@gmail.com>
0ee67d3 to
83c99d5
Compare
|
Tests are fixed and passing, however they do slightly lose the meaning originally intended regarding the 'duplicates' since the extra |
|
Yeah good point re/ dups. I guess with the mountpoint there can't be dups anymore? @SuperQ remember the context? |
|
Yea, I'm not sure we want to do it this way. The mountpoint, while useful, is going to lead to a lot of duplicate cardinality for some users. For example, NFS mounted homedirs with an automount for each user. It could be the same device for each mount point for The real question I have is, in the real world, are the metrics per mountpoint different? If they are, it would be a compelling case to add the label. Otherwise, perhaps a I don't really have access to this kind of setup anymore to test. |
Yeah thats the key question. If yes, let's to this here. If not, let's use |
SuperQ
left a comment
There was a problem hiding this comment.
@dsnt02518 Would you mind providing some real-world example mounstats output here? Feel free to redact any private data, but the real-world metrics data would be useful to see.
|
@SuperQ one datapoint is mounting the same NFS volume using the point on cardinality is still valid though, so maybe this is best hidden behind a flag. |
|
Thanks for the patience on this one — it is the original attempt at surfacing the NFS mountpoint. The direction discussed here (a |
I think this will address #2097
This is also useful for Hammerspace where the same 'device' may be mounted via the same protocol to differing locations, but is actually still a unique mount.
As per @SuperQ 's comment in #2097 , only the first unique (Device, Protocol, MountAddress, MountPoint) will be returned, as per the existing logic with (Device, Protocol, MountAddress).