pcp
[Top] [All Lists]

pmwebapi blinkenlights demo

To: pcp@xxxxxxxxxxx
Subject: pmwebapi blinkenlights demo
From: Serguei Makarov <smakarov@xxxxxxxxxx>
Date: Thu, 7 Mar 2013 16:09:00 -0500 (EST)
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <454309722.5632900.1362688266746.JavaMail.root@xxxxxxxxxx>
Hello all,

Just a heads up to any and all people interested in the pmwebapi feature [1]. I 
am currently developing a small demo to use the data exposed by the API to 
track the state of a set of pcp metrics, and show a "blinkenlights"-style 
status dashboard, with a row of indicators that each light up whenever the 
corresponding metric exceeds a certain threshold; this may be interesting to 
look at for anyone who is considering using pmwebapi in their own project, or 
contributing to pmwebapi development.

The current version of the demo can be found in branch fche/pmwebapi of the 
sourceware pcpfans repository:

$ git clone git://sourceware.org/git/pcpfans.git
$ git checkout fche/pmwebapi
$ cd src/pmwebapi/jsdemos/blinkenlights
$ ...

You can run the demo by launching pmwebapi as something like:
$ pmwebapi -v -r src/pmwebapi/jsdemos/
...

then browsing to http://localhost:44323/blinkenlights/index.html

Please also note that the proposed pmwebapi methods may undergo changes as a 
result of this development; this may be a good place to follow the current 
state of the API proposal:

http://www.sourceware.org/git/gitweb.cgi?p=pcpfans.git;a=history;f=src/pmwebapi/pmwebapi.txt;h=004c42b878b924327d0bb17427893833ec2004ee;hb=2376ac6c82effbce94e38f93f5d5a90f6ceff350

All the best,
      Serguei Makarov

[1] previous announcement: http://oss.sgi.com/archives/pcp/2012-03/msg00045.html

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