G'day William.
On 10/02/16 01:37, William_Staten@xxxxxxxxxxxxxxx wrote:
Good Morning. I wanted to know for the filesys metrics, was it a way to
get the name of the filesystem mounted or the full device mapper name to
display instead of just "/dev/dm-#". For example if I want to see the
metric for filesys.used for /home, instead of showing /dev/dm-7, could I
get rootvg-homelv to get displayed or /home to get displayed instead of
/dev/dm-7?
The filesys.foo metrics in general export information about a filesystem
which is why the instance domain is defined over the set of devices.
The mount point information is more ephemeral, but is also available in
filesys.mountdir.
If your use case involves reporting or command line tools, a small
amount of awk or perl or python would allow you to map from device names
to mount path ...
kenj@bozo:~/src/pcp/src/libpcp/src$ pminfo -f -h vm03 filesys.mountdir
filesys.used
filesys.mountdir
inst [0 or "/dev/dm-0"] value "/"
inst [1 or "/dev/vda1"] value "/boot"
filesys.used
inst [0 or "/dev/dm-0"] value 7874836
inst [1 or "/dev/vda1"] value 219658
Otherwise you're stuck with the device names I'm afraid.
I'll let someone else with device mapper knowledge answer the short
(dm-x) vs long (device-mapper-name) name part of your question,
especially as the disk.dm.* metrics seem to have opted for the other
name ...
kenj@bozo:~/src/pcp/src/libpcp/src$ pminfo -f -h vm03 disk.dm.total
disk.dm.total
inst [0 or "fedora-swap"] value 66392
inst [1 or "fedora-root"] value 668074
|