On Mon, Feb 16, 2009 at 10:29, Cademair <[email protected]> wrote: > Hello, > > 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.
The graph generation is all done on the web frontend. Neither gmetric nor gmond know anything about the data ranges. If you want to force specific ranges--which sounds like a good/reasonable thing in this case--you will need to create a new report type for those metrics. This is significantly easier in the 3.1.x branch, as it has a much more modular way of generating graphs. See the web/graph.d/* directory for examples and documentation. For the 3.0.x series, you will need to hack graph.php to do what you want. I'd suggest something like a "filesystem_report" custom graph that automatically sets the % range, and plots the usage for all partitions on a single host. -- Jesse Becker GPG Fingerprint -- BD00 7AA4 4483 AFCC 82D0 2720 0083 0931 9A2B 06A2 ------------------------------------------------------------------------------ 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

