[Ganglia-developers] whishlist: compare a metric from two (arbitrary?) periods
Hello, today I was playing with the timeshift overlay for metrics and I like it. I have a system, where regular jobs are scheduled once a month (swinging some days back and forth, as the start is always on the same weekday) or once every two weeks. I've added a fortnight period to $conf['time_ranges'] for the two week schedule. I have a useful overlay for these periods. For the other, more volatile schedule it would be useful to have an option to select start (and end) for the original metric and the start for the period to compare to. Right now I don't see where this could be implemented in the ganglia wabfrontend. Any ideas? Jochen -- November Webinars for C, C++, Fortran Developers Accelerate application performance with scalable programming models. Explore techniques for threading, error checking, porting, and tuning. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60136231iu=/4140/ostg.clktrk ___ Ganglia-developers mailing list Ganglia-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ganglia-developers
[Ganglia-developers] [PATCH] Make size of optional graphs in cluster / host view configurable
We'd like to have the optional graphs in the cluster and host view bigger. In the past, I just modified cluster_view.php and host_view.php. To avoid that modification and forward porting of my changes I've added a new configuration option. Comments are welcome. --- ganglia-webfrontend/conf_default.php.in.orig2013-06-25 21:33:02.0 +0200 +++ ganglia-webfrontend/conf_default.php.in 2013-06-25 21:42:35.0 +0200 @@ -310,6 +310,10 @@ # the view .json file. $conf['default_view_graph_size'] = 'medium'; +# sets a default graph size for optional graphs separate from the regular +# default graph size. +$conf['default_optional_graph_size'] = 'medium'; + # The API can serve up graphs, but the URLs should be fully qualified. # The default value is a hack to serve up the called hostname when # possible. It is best to define this manually. --- ganglia-webfrontend/cluster_view.php.orig 2013-05-27 18:36:52.0 +0200 +++ ganglia-webfrontend/cluster_view.php2013-06-25 21:25:45.0 +0200 @@ -416,7 +416,7 @@ foreach ($reports[included_reports] as $index = $report_name ) { if (! in_array( $report_name, $reports[excluded_reports])) { $optional_reports .= A HREF=\./graph_all_periods.php?$graph_argsamp;g= . $report_name . amp;z=large\ -IMG BORDER=0 style=\padding:2px;\ $additional_cluster_img_html_args title=\$cluster_url\ SRC=\./graph.php?$graph_argsamp;g= . $report_name .amp;z=medium\/A +IMG BORDER=0 style=\padding:2px;\ $additional_cluster_img_html_args title=\$cluster_url\ SRC=\./graph.php?$graph_argsamp;g= . $report_name .amp;z= . $conf['default_optional_graph_size'] . \/A ; } } --- ganglia-webfrontend/host_view.php.orig 2013-05-27 18:37:08.0 +0200 +++ ganglia-webfrontend/host_view.php 2013-06-25 21:21:43.0 +0200 @@ -127,7 +127,7 @@ $showEventBtn = 'input title=Hide/Show Events type=checkbox id=' . $SHOW_EVENTS_BASE_ID . $report_name . ' onclick=showEvents(\'' . $graphId . '\', this.checked)/label class=show_event_text for=' . $SHOW_EVENTS_BASE_ID . $report_name . 'Hide/Show Events/label'; if(checkAccess(GangliaAcl::ALL_VIEWS, GangliaAcl::EDIT, $conf)) $optional_reports .= $addMetricBtn . 'nbsp;'; - $optional_reports .= $csvBtn . 'nbsp;' . $jsonBtn . 'nbsp;' .$inspectBtn . 'nbsp;' . $showEventBtn . br / . $graph_anchor . img id=\ . $graphId . \ $additional_cluster_img_html_args border=\0\ title=\$cluster_url\ SRC=\./graph.php?$graph_argsamp;g= . $report_name .amp;z=mediumamp;c=$cluster_url\ style=\margin-top:5px;\ //a/div; + $optional_reports .= $csvBtn . 'nbsp;' . $jsonBtn . 'nbsp;' .$inspectBtn . 'nbsp;' . $showEventBtn . br / . $graph_anchor . img id=\ . $graphId . \ $additional_cluster_img_html_args border=\0\ title=\$cluster_url\ SRC=\./graph.php?$graph_argsamp;g= . $report_name .amp;z= . $conf['default_optional_graph_size'] . amp;c=$cluster_url\ style=\margin-top:5px;\ //a/div; } } } // foreach -- The only problem with troubleshooting is that the trouble shoots back. -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev ___ Ganglia-developers mailing list Ganglia-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ganglia-developers
Re: [Ganglia-developers] bacula: graph backup-size per client in ganglia
Jochen Hein joc...@jochen.org writes: I'm running bacula to backup some clients to a disk pool, and that pool was running out of space. So, what client took up all that space? Here's the very simple script importing the data into ganglia: That script helped in my situation, but was not entirely correct. It still count data, where the retention time has already passed. Here is a better script: --- #!/bin/sh sqlite3 -noheader -separator ' ' /var/lib/bacula/bacula.db \ select Client.Name, round(sum(JobBytes)/(1024*1024*1024.0),2) from ( select distinct Job.JobId, Job.ClientId as cid, Job.JobBytes from Job join JobMedia on JobMedia.JobId = Job.JobId join Media on Media.MediaId = JobMedia.MediaId where datetime(Media.LastWritten,Media.VolRetention ||' seconds') datetime('now') ) join Client on Client.ClientId = cid group by Client.ClientId; | while read client jobbytes; do gmetric --group=bacula --name=bacula-client-$client --value=$jobbytes \ --units=GB --desc=saved data for $client --type=float \ --title=saved data for $client done exit --- Jochen -- The only problem with troubleshooting is that the trouble shoots back. -- Get 100% visibility into Java/.NET code with AppDynamics Lite It's a free troubleshooting tool designed for production Get down to code-level detail for bottlenecks, with 2% overhead. Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap2 ___ Ganglia-developers mailing list Ganglia-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ganglia-developers
[Ganglia-developers] bacula: graph backup-size per client in ganglia
I'm running bacula to backup some clients to a disk pool, and that pool was running out of space. So, what client took up all that space? Here's the very simple script importing the data into ganglia: --- #!/bin/sh sqlite3 -noheader -separator ' ' /var/lib/bacula/bacula.db \ select Client.Name, round(sum(JobBytes)/(1024*1024*1024.0),2) from Client join Job where Client.ClientId = Job.ClientId group by Client.ClientId; | while read client jobbytes; do gmetric --group=bacula --name=bacula-client-$client --value=$jobbytes \ --units=GB --desc=saved data for $client --type=float \ --title=saved data for $client done exit --- I'm using sqlite as my bacula database, but that should be simple to change to another database. May the script be useful to someone else. Comments are welcome. Jochen -- The only problem with troubleshooting is that the trouble shoots back. -- Try New Relic Now We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may ___ Ganglia-developers mailing list Ganglia-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ganglia-developers
[Ganglia-developers] add extras parsing to json graph-definitions
Hi, I'm working on getting ganglia to display correct units for one custom graph. One of the first tries was to give some extra option to rrdtools. When using php-graphs, this is done via $rrdtool_graph[ 'extras' ], but there is nothing for json graphs. That simple patch (against 3.4.2) should fix that: --- ganglia/graph.php.orig 2012-07-17 16:25:37.0 +0200 +++ ganglia/graph.php 2012-07-18 10:44:45.0 +0200 @@ -28,6 +28,7 @@ sanitize( $graph_config[ 'vertical_label' ] ); } + $rrdtool_graph[ 'extras' ] = $graph_config[ 'extras' ]; $rrdtool_graph['lower-limit'] = '0'; if( isset($graph_config['height_adjustment']) ) { Jochen -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Ganglia-developers mailing list Ganglia-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ganglia-developers