pcp
[Top] [All Lists]

Re: [pcp] Archive pmLookupDesc errors (global derived metrics induced)

To: pcp@xxxxxxxxxxx
Subject: Re: [pcp] Archive pmLookupDesc errors (global derived metrics induced)
From: Mark Goodwin <mgoodwin@xxxxxxxxxx>
Date: Wed, 20 Apr 2016 16:30:28 +1000
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <5717011B.80607@xxxxxxxxxx>
References: <523501625.42032893.1461122796378.JavaMail.zimbra@xxxxxxxxxx> <5717011B.80607@xxxxxxxxxx>
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.1
After chatting on IRC with Nathan ..

 __dminit() loads the global derived config(s), but then they're tracked 
per-context.
Derived names are checked in __dmcontext() and dropped if they resolve to an 
existing
metric name, so we can do a similar thing for derived metrics whose operand 
metric
name(s) do not (all) exist. Operands can't be derived, no nesting, so this 
should
be reasonably straight forward.

-- Mark


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