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: Tue, 15 Mar 2016 12:48:34 -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=E+bTe86waiK4dhSASGkgg/yPsQQ=; b=MEFB6 s1G379Pt3U3vLJFKEn53COzd3vqYlqf+FJYWsQzPXAfmf+SgNDKAq1qYObgWvGBd bW/CDrW2bkOPEayTc3NKmP6f4D8vVG0PWuYzA+FBnkXvULgGdEOCaKCiYZxy4GDw NHVtd6kiUzmj3nhLvz7IvkUHqPI3vsPGaIXJmo=
In-reply-to: <659848817.30294126.1457992411353.JavaMail.zimbra@xxxxxxxxxx>
References: <20160314141105.GA1513@xxxxxxxxxxxxxxxxxxxxxxxxxxx> <941490186.30277739.1457987906285.JavaMail.zimbra@xxxxxxxxxx> <20160314212939.GA4200@greenbeast> <659848817.30294126.1457992411353.JavaMail.zimbra@xxxxxxxxxx>
User-agent: Mutt/1.5.24 (2015-08-30)
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.

> > Your solution is fine too; I'm new to PCP, so I will be glad to patch it
> > in whichever way fits best with the project. Is your solution just
> > leaving as is, but replicating the "elasticsearch.nodes" metric tree to
> > something like "elasticsearch.local_node" so old behavior is preserved
> > and the new behavior is added?
> > 
> 
> I was suggesting to rename elasticsearch.nodes.* to elasticsearch.node.*
> and adjust the refresh logic accordingly.  Either approach sounds fine to
> me though.
> 
> cheers.
> 
> --
> Nathan

Thanks,

Alec

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