pcp
[Top] [All Lists]

Re: [pcp] Fetching container metrics with pmwebapi?

To: Lukas Berk <lberk@xxxxxxxxxx>
Subject: Re: [pcp] Fetching container metrics with pmwebapi?
From: Richard Wong <richard.wong.com@xxxxxxxxx>
Date: Mon, 21 Sep 2015 15:50:32 +0000
Cc: pcp@xxxxxxxxxxx
Delivered-to: pcp@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-type; bh=evoCXvAL/t5cmeL2w2fv8Hnb9GEYfb7Abv+lrMl1d40=; b=zeo8MWTgM6wS3GlBtJJtm5XfmeNT3tFQyYWCpl2wwOiR2Zj9gLsudCH23Oec4N46dS 8OUYuYTvSxXAimfl5axvj78AzdV++sjvkicaVXRzXsbvcO1ykDdhjFVsGJriPujtH0PM VdzexMQgsO78b+wn/+keXEJZtuSrjWTOnBMCcGvwngFE++N/sQnLyjdWFTHsIw8BXdRW 69+CTtGQbpj3tikZuVNtjgXyTLv7DTyDurHlniPazSUa4edtGlF0Rfh3zcmoYrEeVqsr 5CHuSTgAhMX77YjrkLVuAXJAQppIVcrb3G54uqLAYVHlQlxbS/ZnKmossa4FgZOQmEVj UQ7A==
In-reply-to: <87wpvjn5a6.fsf@xxxxxxxxxx>
References: <CAP2pTW7Ui2ShR47PtWoXm4UaSQ4bNzJdUTkwF00etm=1mxEEBA@xxxxxxxxxxxxxx> <87wpvjn5a6.fsf@xxxxxxxxxx>

I see, thank you very much for your help, Lukas!


On Mon, 21 Sep 2015 8:47 amÂLukas Berk <lberk@xxxxxxxxxx> wrote:
Hi,

Richard Wong <richard.wong.com@xxxxxxxxx> writes:

> I am interested in fetching container-level metrics via pmwebapi. Is
> there any upcoming support for such an operation, providing similar
> functionality to `pminfo --fetch --container <container_name>
> <metric_names>`?

I believe this is already supported via the hostspec context.

/pmapi/context?hostspec=FOO where, FOO is a string along the lines of
pcp://HOST?container=bar (you'll need to url encode that string when
passing it).

Cheers,

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