r3894 - trunk/varnish-tools/webgui/Varnish

petter at projects.linpro.no petter at projects.linpro.no
Fri Mar 6 09:42:17 CET 2009


Author: petter
Date: 2009-03-06 09:42:17 +0100 (Fri, 06 Mar 2009)
New Revision: 3894

Modified:
   trunk/varnish-tools/webgui/Varnish/RequestHandler.pm
Log:
Replaced the useless 'Hit ratio useless' with the more usefull 'Backend connections failures'


Modified: trunk/varnish-tools/webgui/Varnish/RequestHandler.pm
===================================================================
--- trunk/varnish-tools/webgui/Varnish/RequestHandler.pm	2009-03-06 08:41:24 UTC (rev 3893)
+++ trunk/varnish-tools/webgui/Varnish/RequestHandler.pm	2009-03-06 08:42:17 UTC (rev 3894)
@@ -529,11 +529,11 @@
 			
 			# example of adding graph the graph ID must match that of a predefind graph
 			# which is created in generate_graph found around line 826
-			push @{$summary_stat_list{'Hit ratio since start'}}, {
+			push @{$summary_stat_list{'Backend connections failures'}}, {
 				is_graph 	=> 1,
 				unit_id 	=> $unit_id,
 				is_node 	=> $is_node,
-				graph_id 	=> 'cache_hit_ratio_since_start',
+				graph_id 	=> 'backend_connections_failures',
 			};
 			push @{$summary_stat_list{'Hit ratio'}}, {
 				is_graph 	=> 1,
@@ -1131,6 +1131,15 @@
 				# like this connect rate
 				use_delta			=> 1,
 			},
+			backend_connections_failures	=> {
+				graph_parameter	=> {
+					y_label			=> 'Failures',
+					title			=> "Backend conn failures / s last " . $param{'time_span'},
+					y_min_value		=> 0,
+				},
+				divisors			=> [ 'Backend connections failures' ],
+				use_delta			=> 1,
+			},
 			cache_hit_ratio 	=> {
 				graph_parameter	=> {
 					y_label			=> '%',



More information about the varnish-commit mailing list