Permalink
Browse files

Added all the varnish metrics from varnishstat

  • Loading branch information...
vuksan
vuksan committed Sep 12, 2011
1 parent 42b0c90 commit d6ce24f2df5414802e575844089ff7fcc9566db2
Showing with 726 additions and 76 deletions.
  1. +20 −1 varnish/conf.d/{varnish.conf → varnish.pyconf}
  2. +706 −75 varnish/python_modules/varnish.py
@@ -10,15 +10,31 @@ modules {
collection_group {
collect_every = 30
- time_threshold = 90
+ time_threshold = 60
+
+# If you want all of metrics kept track by varnishstat ie. all 100 of them
+# you can simply uncomment line below and comment out all the other ones
+# metric {
+# name_match = "varnish_(.+)"
+# }
+
metric {
name = "varnish_client_req"
title = "Client Requests"
}
+
metric {
name = "varnish_backend_req"
title = "Backend Requests"
}
+ metric {
+ name = "varnish_backend_unhealthy"
+ title = "Backend conn. not attempted"
+ }
+ metric {
+ name = "varnish_backend_busy"
+ title = "Backend conn. too many"
+ }
metric {
name = "varnish_cache_hit_ratio"
title = "Cache Hit Ratio"
@@ -35,4 +51,7 @@ collection_group {
name = "varnish_n_wrk"
title = "Worker Threads"
}
+
+
+
}
Oops, something went wrong.

0 comments on commit d6ce24f

Please sign in to comment.