pcp
[Top] [All Lists]

Re: Local context vs dynamic namespace

To: nathans@xxxxxxxxxx
Subject: Re: Local context vs dynamic namespace
From: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date: Mon, 12 Apr 2010 13:52:54 +1000
Cc: pcp <pcp@xxxxxxxxxxx>
In-reply-to: <1988890790.547131271037410710.JavaMail.root@xxxxxxxxxxxxxxxxxx>
References: <1988890790.547131271037410710.JavaMail.root@xxxxxxxxxxxxxxxxxx>
Reply-to: kenj@xxxxxxxxxxxxxxxx
This is pretty much outside the scope of what I was aiming for with the
dynamic metrics, although it is not unreasonable.

It will mean even more code being copied and changed from pmcd to libpcp
as the current code in the library has no support for making the needed
DSO calls.

So it is not a simple change.

The mmv pmda will sneak in on the back of the default dso table for
PM_CONTEXT_LOCAL, but how will you get the aconex pmda into the dso
table (pminfo -L -K 123,aconex/pmda_aconex.so,aconex_init ... in the
bash stuff)?

On Mon, 2010-04-12 at 11:56 +1000, nathans@xxxxxxxxxx wrote:
> Hi Ken,
> 
> We're a long way down the path of converting all of our production
> environment over to using MMV and the dynamic namespace extensions.
> All going swimmingly so far.  Just this morning we came across an
> issue with the bash metric name auto-completion.  This uses pminfo
> in local context mode (-L) to provide a list of metric names which
> the shell can use for name completion with several pcp commands.
> 
> In our namespace we have MMV:*:* (a top level mmv namespace entry)
> and ACONEX:*:* as well (likewise, at the top level).  In local mode
> pminfo does not traverse, just reports "mmv" and "aconex".
> 
> We can change the bash code to not use -L, but that seems like its
> just avoiding the real problem - should local context mode be able
> to descend into these parts of the namespace?  I woulda thought it
> should, just like regular pmcd mode...?
> 
> cheers.
> 


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