sorry i forgot to tell you that a full ganglia message is
enum Ganglia_message_formats {
metric_user_defined = 0 /* gmetric message */
};
union Ganglia_message switch (Ganglia_message_formats id) {
case metric_user_defined:
Ganglia_gmetric_message gmetric;
default:
void;
};
the entire ganglia message is a simple discriminant union. i've removed
all the other messagae formats above to give you the gmetric message
information only. if you want to full protocol, just view the
./lib/protocol.x file in the upcoming 2.6.0. release.
so in short, the first part of a ganglia message is always an enum (int). if the int == 0, then you know you are receiving a gmetric message... and what follows will be the Ganglia_gmetric_message format that i sent in the last message.
more good luck :) -matt Kevin A. Burton wrote:
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
--
PGP fingerprint 'A7C2 3C2F 8445 AD3C 135E F40B 242A 5984 ACBC 91D3'
They that can give up essential liberty to obtain a little
temporary safety deserve neither liberty nor safety.
--Benjamin Franklin, Historical Review of Pennsylvania, 1759
signature.asc
Description: OpenPGP digital signature

