pcp
[Top] [All Lists]

Re: [pcp] Queston about pcp performance metrics filesys.used

To: pcp@xxxxxxxxxxx
Subject: Re: [pcp] Queston about pcp performance metrics filesys.used
From: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date: Wed, 10 Feb 2016 09:01:08 +1100
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <OF1B9DD255.E1F86B08-ON85257F54.004E7C3F-85257F54.005054A1@xxxxxxxxxxxxxxx>
References: <OF1B9DD255.E1F86B08-ON85257F54.004E7C3F-85257F54.005054A1@xxxxxxxxxxxxxxx>
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1
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

<Prev in Thread] Current Thread [Next in Thread>