pcp
[Top] [All Lists]

Re: House Utility monitoring with PCP

To: Harshula <harshula@xxxxxxxxx>, Richard Keech <richard.keech@xxxxxxxxx>
Subject: Re: House Utility monitoring with PCP
From: Nathan Scott <nathans@xxxxxxxxxx>
Date: Tue, 16 Sep 2014 20:58:34 -0400 (EDT)
Cc: PCP <pcp@xxxxxxxxxxx>
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <5417F6DE.7090108@xxxxxxxxx>
References: <5417F6DE.7090108@xxxxxxxxx>
Reply-to: Nathan Scott <nathans@xxxxxxxxxx>
Thread-index: Sy3QJQHMLxoXaQvsmdDQMRF+qvr4DQ==
Thread-topic: House Utility monitoring with PCP
Hi guys,

----- Original Message -----
> [...]
> He's been monitoring electricity, gas, water and temperature usage and
> has been doing something similar to me by using Python and GNUPlot. He's
> now looking at storing the data in a DB and having more dynamic graphing
> options.
> 
> I mentioned PCP now has Python bindings and how it archives the data and
> has a charting tool. I vaguely recall the mention of web graphing.
> 
> Could you please show Richard how he can use the PCP Python bindings to
> create an agent?
> 

Sure - there's a few good examples to get you started in the PCP git tree
at git://git.pcp.io/pcp ...

$ ls src/pmdas/*/*python
src/pmdas/dmcache/pmdadmcache.python  src/pmdas/simple/pmdasimple.python
src/pmdas/gluster/pmdagluster.python  src/pmdas/zswap/pmdazswap.python

Each of those is fairly simple - consuming flat text files, kernel procfs
files or xml input.  IIRC, there's also some python API docs in the PCP
Programmers Guide (http://www.pcp.io/doc/pcp-programmers-guide.pdf).  Many
high level concepts are shared between the C API (extensively documented),
and the python API although the latter is far simpler & object-oriented of
course.

> Keep me CC'd, the information would be useful for me too.

CC'ing the PCP list too, many folks there will be interested as well.
Lots of other Aussies hang out here who might also be keen to monitor
their houses with PCP (myself included).  Let us know how it goes!

cheers.

--
Nathan

<Prev in Thread] Current Thread [Next in Thread>
  • Re: House Utility monitoring with PCP, Nathan Scott <=