r3896 - trunk/varnish-tools/webgui/Varnish

petter at projects.linpro.no petter at projects.linpro.no
Fri Mar 6 10:47:18 CET 2009


Author: petter
Date: 2009-03-06 10:47:18 +0100 (Fri, 06 Mar 2009)
New Revision: 3896

Modified:
   trunk/varnish-tools/webgui/Varnish/RequestHandler.pm
Log:
Added "Backend requests" to the summary section.


Modified: trunk/varnish-tools/webgui/Varnish/RequestHandler.pm
===================================================================
--- trunk/varnish-tools/webgui/Varnish/RequestHandler.pm	2009-03-06 09:04:38 UTC (rev 3895)
+++ trunk/varnish-tools/webgui/Varnish/RequestHandler.pm	2009-03-06 09:47:18 UTC (rev 3896)
@@ -535,6 +535,12 @@
 				is_node 	=> $is_node,
 				graph_id 	=> 'backend_connections_failures',
 			};
+			push @{$summary_stat_list{'Backend requests'}}, {
+				is_graph 	=> 1,
+				unit_id 	=> $unit_id,
+				is_node 	=> $is_node,
+				graph_id 	=> 'backend_requests',
+			};
 			push @{$summary_stat_list{'Hit ratio'}}, {
 				is_graph 	=> 1,
 				unit_id 	=> $unit_id,
@@ -1137,11 +1143,21 @@
 					y_label			=> 'Failures',
 					title			=> "Backend conn failures / s last " . $param{'time_span'},
 					y_min_value		=> 0,
-					y_number_format	=> Varnish::Util::get_formatted_number,
+					y_number_format	=> sub { return Varnish::Util::get_formatted_number($_[0]) },
 				},
 				divisors			=> [ 'Backend connections failures' ],
 				use_delta			=> 1,
 			},
+			backend_requests	=> {
+				graph_parameter	=> {
+					y_label			=> 'Reqs',
+					title			=> "Backend reqs / s last " . $param{'time_span'},
+					y_min_value		=> 0,
+					y_number_format	=> sub { return Varnish::Util::get_formatted_number($_[0]) },
+				},
+				divisors			=> [ 'Backend requests made' ],
+				use_delta			=> 1,
+			},
 			cache_hit_ratio 	=> {
 				graph_parameter	=> {
 					y_label			=> '%',



More information about the varnish-commit mailing list