pcp
[Top] [All Lists]

Re: [pcp] PCP libvirt PMDA

To: pcp@xxxxxxxxxxx
Subject: Re: [pcp] PCP libvirt PMDA
From: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date: Sun, 24 Jul 2016 07:33:28 +1000
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <6030869a-395c-6d2f-9277-9d3d307c6bd1@xxxxxxxxxx>
References: <1fa58d82-ac73-7747-c58d-acf880bc2155@xxxxxxxxxx> <20ae899d-50c6-1457-644f-f45ad26c63d4@xxxxxxxxxx> <37250089.6949181.1468900166388.JavaMail.zimbra@xxxxxxxxxx> <fc9e92aa-355e-6cc1-7586-599847cf6cbe@xxxxxxxxxx> <1473242169.7374530.1468971331935.JavaMail.zimbra@xxxxxxxxxx> <810341356.7539206.1469047436415.JavaMail.zimbra@xxxxxxxxxx> <6030869a-395c-6d2f-9277-9d3d307c6bd1@xxxxxxxxxx>
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0
On 23/07/16 23:17, Marko Myllynen wrote:
...
If we think metrics with PM_INDOM_NULL as one-dimensional metrics,
metrics with instance domains as two-dimensional metrics, and these
metrics which have two dynamic dimensions as three-dimensional metrics,
are there other such "3D" metrics in standard / often used PMDAs
present already, how are they set up?

There is a longish and I think complete discussion on this topic in a mail thread earlier this year ... see
http://www.pcp.io/pipermail/pcp/2016-May/010387.html

I don't see this any kind of issue here. The case that a component must
begin with an alphabetic is documented in pmns(5) but for some reason
it is not checked/forced and in fact everything seemed to work with
components beginning with a digit.

I believe the implementation matches the documentation, namely name components must begin with an alphabetic ... I've tried a couple of test cases and this assertion seems to hold, so I'd be keen to see evidence to the contrary.

I forgot another biggie yesterday - related to the persistence of PMIDs.
Its important to a number of the client tools (pmlogger, pmie, pmchart,
hmmm pretty much all actually) that if pmcd is restarted, metrics return
with the same PMID as before (this is pretty much part of the protocol
over-the-wire, and its also necessary on-disk between archives of the
same host).

This becomes very difficult to ensure in the case of dynamic metrics -
it was the main reason we switch cgroups to using this model IIRC.  And
the pmdaCache interfaces support persisting instance identifiers well of
course.

As I said yesterday in email, pmdaCache can also be used to ensure persistent mapping from dynamic metric names to PMIDs.

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