pcp
[Top] [All Lists]

Re: One pmwebapi against multiple pcp running hosts

To: Dev Priya <devpriya00@xxxxxxxxx>
Subject: Re: One pmwebapi against multiple pcp running hosts
From: "Frank Ch. Eigler" <fche@xxxxxxxxxx>
Date: Tue, 2 Apr 2013 16:53:37 -0400
Cc: pcp@xxxxxxxxxxx
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <CADPXOeknVWyG8ZWgEcnVnxtHoYr3tq+g5EVof4AdAhxGZH4eiA@xxxxxxxxxxxxxx>
References: <CADPXOeknVWyG8ZWgEcnVnxtHoYr3tq+g5EVof4AdAhxGZH4eiA@xxxxxxxxxxxxxx>
User-agent: Mutt/1.4.2.2i
Hi -

> I have pmwebapi installed on one machine and I have pcp running on multiple
> machines. If I understand correctly one instance of pmwebapi should be able
> to gather metrics from multiple hosts and not only the host it is running
> on, am I right? I am asking this because I am not seeing this behavior. So
> I wanted to confirm with you if this is the desired behavior before I start
> debugging.

It should work.  Each pmwebapi context# maps to a separate PMAPI-level
context, each of which can connect to different
hosts/archives/whatever.  Make sure you use 

/pmapi/context?hostname=HOST1 => /pmapi/context#1/
/pmapi/context?hostname=HOST2 => /pmapi/context#2/

consistently thereafter.

- FChE

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