Oliver Wehrens wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Jan 22, 2005, at 6:40 AM, Kevin A. Burton wrote:
...
Do do what? To set a gmetric value or to get a snapshot of the DB?
Just open a Socket to 8649 on one of the ganglia nodes and it will
give you a data dump in XML and then parse that with Xerces.
I want to get a snapshot of the rrd of gmetad from java. So far what I
see is I have to query gmetad via the port, get the xml and store it
by myself to get data and graphs out of it (e.g. duplicating
everything using rjobin).
Yeah... we've done some custom jrobin code here. I'd like to dump it and
move to a java based gmetric compatible broadcaster which can read
/etc/gmond.conf. This way we could just write a daemon that sleeps for
an interval and then rebroadcasts the metrics.
Though one drawback to using ganglia for this is that (from what I can
tell) the stats are machine-based and not cluster based. Some stats I
want to log have no concept of individual machines and are in fact stats
for the overall performance of the cluster.
UDP from Java is pretty easy but I don't know the gmetric protocol so......
Ganglia does seem to go a long way but at least for my use case it only
accomplishes 70% ...
Kevin
--
Use Rojo (RSS/Atom aggregator). Visit http://rojo.com. Ask me for an
invite! Also see irc.freenode.net #rojo if you want to chat.
Rojo is Hiring! - http://www.rojonetworks.com/JobsAtRojo.html
If you're interested in RSS, Weblogs, Social Networking, etc... then you
should work for Rojo! If you recommend someone and we hire them you'll
get a free iPod!
Kevin A. Burton, Location - San Francisco, CA
AIM/YIM - sfburtonator, Web - http://peerfear.org/
GPG fingerprint: 5FB2 F3E2 760E 70A8 6174 D393 E84D 8D04 99F1 4412