This is fairly interesting :-) and I would be in favor of including it. Can you fork the Ganglia repo at
https://github.com/ganglia/monitor-core and submit your patch as a pull request ? I'd be curious if you tested what happens if carbon server disappears ? Also using APR stuff may be a bit more portable for sockets. Vladimir On Sun, 2 Oct 2011, Dave Josephsen wrote: > Hi list. > > It would be useful to me and others I think > (http://blog.vuksan.com/2010/09/29/integrating-graphite-with-ganglia/) if > gmetad could send metrics straight to graphite. > > I'd like to start a discussion about making this a permanent feature of the C > version gmetad going forward, or at least a supported patch against mainline. > > To sweeten the pot I've attached patches against 3.2.0 that allow gmetad to > send all non-summary metrics to a remote graphite server. > > If there's already an effort going on to add this functionality, feel free to > ignore me. (plugins to the python daemon don't count. For this to be useful > to me I'd like the feature in the C daemon please) > > If I'm on the wrong list feel free to move the thread wherever and chastise > me. > > Usage: > Patch in the usual way, and then add the options: "carbon_server" and > "graphite_prefix" to your gmetad.conf. > > carbon_server should be set to the remote hostname or ip address of the > graphite server > > graphite_prefix should be whatever you want to prefix your graphite path with > (ganglia.<gridname> or something like that) > > You can optionally specify a 'carbon_port'. This defaults to 2003 if you > don't specify it. > > > Caveats: > - I'm not sure how portable my socket implementation is. It should compile on > any relatively posix-ish system. Ganglia appears to have it's own socket > stuff going on in lib/tcp.c, and this is probably more portable, but I only > took a cursory glance at it. I only had a few hours on Sun to hack on this. > > - My changes to rrd_helpers.c should be broken out into a new file like > carbon_helpers.c and/or changes to lib/tcp.c (and probably my socket stuff is > superfluous), but I didn't have time to mess with autoconf and I'm not really > sure how this is going to be received, so if you guys are happy with it and > want to include it I'll neaten it up. If you don't like the idea I'll take > my patches and put them on a blog or something. > > Take it easy > > -dave ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 _______________________________________________ Ganglia-developers mailing list Ganglia-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ganglia-developers