pcp
[Top] [All Lists]

Re: [pcp] Fetching container metrics with pmwebapi?

To: Richard Wong <richard.wong.com@xxxxxxxxx>
Subject: Re: [pcp] Fetching container metrics with pmwebapi?
From: Lukas Berk <lberk@xxxxxxxxxx>
Date: Mon, 21 Sep 2015 11:47:13 -0400
Cc: pcp@xxxxxxxxxxx
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <CAP2pTW7Ui2ShR47PtWoXm4UaSQ4bNzJdUTkwF00etm=1mxEEBA@xxxxxxxxxxxxxx> (Richard Wong's message of "Fri, 18 Sep 2015 15:05:39 -0700")
References: <CAP2pTW7Ui2ShR47PtWoXm4UaSQ4bNzJdUTkwF00etm=1mxEEBA@xxxxxxxxxxxxxx>
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)
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>