pcp
[Top] [All Lists]

Re: [pcp] elasticsearch PMDA question

To: Nathan Scott <nathans@xxxxxxxxxx>
Subject: Re: [pcp] elasticsearch PMDA question
From: Alec Ten Harmsel <alec@xxxxxxxxxxxxxxxxxx>
Date: Wed, 16 Mar 2016 10:42:22 -0400
Cc: pcp@xxxxxxxxxxx
Delivered-to: pcp@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=a/ymadYibWa6ucPAAYiZWA1BgXk=; b=gLla+ BADdo79+x8jeSx6ExVfxraWOyPED4ByfRGpnIUrn4cRGLn7hMA54+UYbaoa0FAXl CVLwDuPDTJ9OM2AH6WTrj8hPtIc6y6KjStqIq+dAHxZ4OaVxtZe536FDk/QPWkwS dkS3fja/GrXsrQEZ9CaKw3czR/pMHaY66Rmjvc=
In-reply-to: <20160316143950.GA641@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
References: <20160314141105.GA1513@xxxxxxxxxxxxxxxxxxxxxxxxxxx> <941490186.30277739.1457987906285.JavaMail.zimbra@xxxxxxxxxx> <20160314212939.GA4200@greenbeast> <659848817.30294126.1457992411353.JavaMail.zimbra@xxxxxxxxxx> <20160315164834.GA4224@xxxxxxxxxxxxxxxxxxxxxxxxxxx> <366483517.30931865.1458077465390.JavaMail.zimbra@xxxxxxxxxx> <20160316143950.GA641@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
User-agent: Mutt/1.5.24 (2015-08-30)
On Wed, Mar 16, 2016 at 10:39:50AM -0400, Alec Ten Harmsel wrote:
> On Tue, Mar 15, 2016 at 05:31:05PM -0400, Nathan Scott wrote:
> > 
> > 
> > ----- Original Message -----
> > > On Mon, Mar 14, 2016 at 05:53:31PM -0400, Nathan Scott wrote:
> > > > ----- Original Message -----
> > > > > [...]
> > > > > I see that a configuration file PCP_PMDAS_DIR/elasticsearch/es.conf is
> > > > > parsed by the PMDA. I was thinking that it would be possible to add a
> > > > > new variable, something like $all_node_stats. It would default to 
> > > > > false,
> > > > > so only metrics from localhost would be fetched. It could be set true 
> > > > > by
> > > > > that configuration file.
> > > > 
> > > > Good solution, that'd work well.
> > > 
> > > I am planning on doing this unless you say otherwise. I like the
> > > approach you're suggesting, but I don't want to break
> > > backwards-compatibility unless I'm explicitly told that it's OK.
> > 
> > Yep, good call - go for it.  Thanks Alec.
> > 
> 
> Patch attached below. It's been tested with ES 1.7.4 with the new
> variable, $all_node_stats, set to 0 and to 1. Default is 0.
> 
> The removal of "?all" from the URL does not change behavior at all.
> 
> Thanks for all the guidance.
> 
> Alec

Sorry, generated the patch in the wrong order. Actual patch attached
here.

Alec

Attachment: pmda_es_local.patch
Description: Text Data

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