On Tue, Jul 14, 2009 at 10:57, Josh Blender<[email protected]> wrote: > I've been looking high and low for a solution to this, but haven't found > anything. I'm sure somebody has had this requirement before: > I want to create custom graphs (reports) that include 1 metric from each > server in the cluster.
Yay! Someone besides me is using this. :-) > For example, if I have a custom metric that samples MySQL queries per > second, I need this report to show the QPS from each individual server > (rather than the average or total of all the servers in the cluster). The > key really is that it needs to basically add a line for each server in the > cluster automatically. When we deploy a new server, all we do is make sure > gmond is configured to use the proper multicast channel, and it gets > automatically added to the cluster. It needs to also get automatically > added to this graph, rather than statically adding a field to the rrdtool > command inside the php code. Sounds similar to something I had to do with a bunch of storage mount points. You are just measuring QPS instead of space used. > I figure I could do this with some pretty complex PHP code, but I'm sure > somebody has tackled this problem before, and maybe there's a better > solution? You'll have to write some PHP code to munge things properly, and there's a good chance it won't be pretty. This is at least partially a function of using RRDTOOL for the graph generation, with its requirement for using RPN... I've attached the storage_report.php file I use for tracking disk space aggregated from a number of different computers. The file is pretty heavily commented, but feel free to ask questions either here on the mailing list, or in the #ganglia IRC channel on Freenode (I'm usually lurking there). -- Jesse Becker GPG Fingerprint -- BD00 7AA4 4483 AFCC 82D0 2720 0083 0931 9A2B 06A2
<<attachment: storage_report.php>>
------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge
_______________________________________________ Ganglia-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ganglia-general

