Cademair <[email protected]> wrote: > I'm working on a gmetric script to deploy to all of my nodes that reports > filesystem %used metrics. I have it working on one node now, and the web > front-end graphs work just fine, but I'm curious if there's a way to change > the scaling. Is there a way to force the Y-axis to display a specific range > (in my case 0-100, preferably integer), instead of having it dynamically > calcluated? I'd like to leave all of the default graphs alone, just change > my custom gmetric graphs. > > Here's a sample gmetric call from my script: > gmetric --name=Filesystem_usr --value=47 --type=uint8 --units=Percent_Used > > Just for reference, I'm using Michael Perzl's Ganglia 3.07 RPM's for AIX on > all of the nodes and on the gmetad server.
You'll need to make custom graphs for your metrics if you want them to have different parameters than the rest of the graphs. In 3.0 that means editing graph.d and adding a new stanza to the long if-elseif chain in there. It's more elegant in 3.1, you can write a separate PHP file for each custom graph, and drop it into the graph.d directory. You'll want to add something like "--upper-limit 100 --rigid" to the arguments it calls rrdgraph with. Check the rrdgraph man pages. Integrating your custom graphs into Ganglia's displays is a bigger topic. IIRC in 3.0 you won't have access to them at all without poking at some places in the code to add them. 3.1 will at least automatically add them to the pulldown menu on the page that displays a cluster. -- Cos ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Ganglia-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ganglia-general

