kevin-

here is the structure of a gmetric message in xdr spec format.

struct Ganglia_gmetric_message {
  string type<>;
  string name<>;
  string value<>;
  string units<>;
  unsigned int slope;
  unsigned int tmax;
  unsigned int dmax;
};

you can just run it through rpcgen to get xdr code in c. i'm sure there is a similar javaism.

as far as sending metric message for entire clusters.. you are right... there isn't a way to do that with ganglia at this time (however proxy messages will be coming soon).

you can expect some swig interfaces to ganglia in the future too. we hope to get the 70% useful to 100% for you in the future.

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

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to