This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
http/xml bridge for web-based pcp clients
- From: "Frank Ch. Eigler" <fche at redhat dot com>
- To: pcp at oss dot sgi dot com
- Cc: systemtap at sourceware dot org
- Date: Thu, 3 Feb 2011 16:35:18 -0500
- Subject: http/xml bridge for web-based pcp clients
Hi -
Eventually, it'd be nice if a java/javascript type web application
could suck data out of a PCP installation and present it in glorious
HTML. This should include normal metric access as well as the new
event stuff from 3.5.0. The key missing link right now seems to be a
web-accessible interface. (nathans' json-pcp work, to the extent I
understand it, is not directly responsive to this need.)
The smallest new piece of code that seems to accomplish the need would
be a mini http server that speaks a xmlrpc-ish version of the PMAPI.
It'd be like a pminfo-over-http. One extension would be that a single
pcp client connection would be reused for the duration of a web
"session", consisting of many independent xmlrpc calls.
As for implementation details, something like libmicrohttpd [1] for
the protocol level stuff; or perhaps XML-RPC [2] and its abyss http
code for http server side support; plain vanilla LGPL C code for the
glue between that and PMAPI.
Does this sound sensible?
- FChE
[1] http://www.gnu.org/software/libmicrohttpd/, LGPL
[2] http://xmlrpc-c.sourceforge.net/, BSD