pcp
[Top] [All Lists]

Re: [pcp] fetchgroups api - python bindings

To: pcp@xxxxxxxxxxx, Nathan Scott <nathans@xxxxxxxxxx>
Subject: Re: [pcp] fetchgroups api - python bindings
From: Mark Goodwin <goodwinos@xxxxxxxxx>
Date: Mon, 14 Dec 2015 16:06:33 +1000
Delivered-to: pcp@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=eTiyC9TXWfhr3luVzY3lJe00/IgvXmVAtVsJqcWZ9Fk=; b=SqAPyKdsNMzgWW4trEsr6SRPlJLMSgAdYKjdGejnqxi/KkpRqwEO2R+OGrYKeg/WGU jH/iKCpDWD79cyGzOIagTOwJMvbsvFJLZZV8uwUfYGEdYq4vPghzmTChH1zoXb22yQyg gr6h31osXe4aMoIHL7XHQqD2o0N1zZjUUerDkOUrQAZxnc9kRhpR3/ZRUaePt6Odi6U4 lF8282OBRtrRNBz47VdLjbNgjLSA8ByiHrrINH/soQqvHdiq5B4CvSvCi420J8b2F9Pk xyfwMMcpqbwstvKi+ZQMg3WrjtSKt6usoDJfKUYfnPnU2lcp4MkixOU2eivmSlb0a3yV o+Kw==
In-reply-to: <153938084.40304082.1450069736806.JavaMail.zimbra@xxxxxxxxxx>
References: <20151206204742.GC22561@xxxxxxxxxx> <5666E4F7.4070005@xxxxxxxxxx> <y0m4mft10vf.fsf@xxxxxxxx> <566A59A5.6090403@xxxxxxxxxx> <20151211150348.GH22434@xxxxxxxxxx> <153938084.40304082.1450069736806.JavaMail.zimbra@xxxxxxxxxx>
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0


On 12/14/2015 03:08 PM, Nathan Scott wrote:
pmcc is not just a fetchgroup-alike API, it does a number of other very
useful things too, abstracting code out from high level python scripts.
[...]
Updating pmcc to use pmfg should be useful on several levels - as you say,
Mark; it should cause a reduction of code in pcp.pmcc, and we need to have
a coherent plan going forward - otherwise we might see a last-minute series
of patches a couple of days before release, where folk try to second guess
the appropriate future API to use (*cough*).

So, we need to see a resolution to this - either as a "pmfg+pmcc" API or a
"pmfg+new-high-level-API" (if pmcc/pmfg cannot be tweaked to work together

Well, I see it as pmfg+pmcc, i.e. pmfg is extending pmapi but in no
way invalidates any existing pmcc or pmapi functions - we can use them
together or separately with no issues. Perhaps we should just be calling this
the fetchgroup extensions to pmapi. pmcc is orthogonal - we can have
future pmcc functions that call fetchgroup functions (e.g. instance filtering,
reconnect context, etc), and equally, code that uses fetchgroup
can naturally call legacy pmapi and/or pmcc.

& in that case, we need to see that new API, and understand why its needed
over pmcc) before any core libpcp fetchgroup addition is added - this lack
of cohesion is already causing confusion.  [..]

I don't see where the confusion is - IMO it's not either/or. We're just
adding a bunch of functions to pmapi that make it easier to do a lot of
the common stuff like rate conversion, scaling, value extraction, etc

+1 for pmfg event metric support too, BTW; other fetchgroup implementations
like libpcp_qmc support 'em - any API being added into libpcp itself should
certainly be complete.

yep agree

Cheers

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