pcp
[Top] [All Lists]

Re: [pcp] rpm pmda

To: Nathan Scott <nathans@xxxxxxxxxx>
Subject: Re: [pcp] rpm pmda
From: Stan Cox <scox@xxxxxxxxxx>
Date: Wed, 04 Dec 2013 17:59:23 -0500
Cc: PCP <pcp@xxxxxxxxxxx>
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <1001285130.20183908.1385687171832.JavaMail.root@xxxxxxxxxx>
References: <52608FC9.2050103@xxxxxxxxxx> <2052845457.6426836.1382325018005.JavaMail.root@xxxxxxxxxx> <5296569A.1050000@xxxxxxxxxx> <1001285130.20183908.1385687171832.JavaMail.root@xxxxxxxxxx>
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0
The scox/dev pcpfans branch has been updated: ( 662ee2e1dbff6146b9fcf4fa16a710fd7306ae10 ): There is no longer a separate hash table; instead pmdaCacheLookupName is used for the lookups. Switched to mutexes since there is only one reader. Improved the metric initalization.

Here is a small test of the pmcd driven rpm pmda.

% for i in name arch buildhost buildtime description epoch group installtime license packager release size sourcerpm url vendor version ; do pmval -n root -s 1 rpm.$i'[python]' ; done

metric:    rpm.name
host:      dieyong
semantics: instantaneous value
units:     none
samples:   1

               python
             "python"

metric:    rpm.arch
host:      dieyong
semantics: instantaneous value
units:     none
samples:   1

               python
             "x86_64"

metric:    rpm.buildhost
host:      dieyong
semantics: instantaneous value
units:     none
samples:   1

               python
"buildvm-05.phx2.fedoraproject.org"

metric:    rpm.buildtime
host:      dieyong
semantics: instantaneous value
units:     none
samples:   1

     python
 1381237076
...

% pmval -s 1 -n root 'rpm.version[gcc]'

metric:    rpm.version
host:      dieyong
semantics: instantaneous value
units:     none
samples:   1

                  gcc
              "4.8.2"

<Prev in Thread] Current Thread [Next in Thread>
  • Re: [pcp] rpm pmda, Stan Cox <=