Permalink
Browse files

New Module: kestrel

  • Loading branch information...
1 parent 0f7f893 commit 294d374740691c8d5a13f382f91f16e3f0ed6e61 Thomas Morse committed Jun 2, 2011
Showing with 432 additions and 0 deletions.
  1. +11 −0 kestrel/README.mkdn
  2. +150 −0 kestrel/conf.d/kestrel.conf
  3. +271 −0 kestrel/python_modules/kstats.py
View
@@ -0,0 +1,11 @@
+kestrel
+===============
+
+python module for ganglia 3.1.
+
+This module sends metrics on kestrel protocol "stats".
+
+## AUTHOR
+
+Matt Erkkila <merkkila@empowercampaigns.com>
+
View
@@ -0,0 +1,150 @@
+modules {
+ module {
+ name = "kstats"
+ language = "python"
+
+ param host {
+ value = "localhost"
+ }
+ param port {
+ value = 22133
+ }
+ param type {
+ value = "kstats"
+ }
+
+ param refresh_rate {
+ value = 15
+ }
+
+ param metrix_prefix {
+ value = "ks"
+ }
+ param queues {
+ value = "my_queue01,my_queue02"
+ }
+
+ }
+}
+
+collection_group {
+ collect_every = 20
+ time_threshold = 90
+
+ metric {
+ name = "ks_curr_items"
+ value_threshold = 0
+ }
+ metric {
+ name = "ks_cmd_get"
+ value_threshold = 0
+ }
+ metric {
+ name = "ks_cmd_set"
+ value_threshold = 0
+ }
+ metric {
+ name = "ks_bytes_read"
+ value_threshold = 0
+ }
+ metric {
+ name = "ks_bytes_written"
+ value_threshold = 0
+ }
+ metric {
+ name = "ks_bytes"
+ value_threshold = 0
+ }
+ metric {
+ name = "ks_curr_connections"
+ value_threshold = 0
+ }
+ metric {
+ name = "ks_get_hits"
+ value_threshold = 0
+ }
+ metric {
+ name = "ks_get_misses"
+ value_threshold = 0
+ }
+ metric {
+ name = "ks_queue_my_queue01_items"
+ value_threshold = 0
+ }
+ metric {
+ name = "ks_queue_my_queue01_bytes"
+ value_threshold = 0
+ }
+ metric {
+ name = "ks_queue_my_queue01_total_items"
+ value_threshold = 0
+ }
+ metric {
+ name = "ks_queue_my_queue01_logsize"
+ value_threshold = 0
+ }
+ metric {
+ name = "ks_queue_my_queue01_expired_items"
+ value_threshold = 0
+ }
+ metric {
+ name = "ks_queue_my_queue01_mem_items"
+ value_threshold = 0
+ }
+ metric {
+ name = "ks_queue_my_queue01_mem_bytes"
+ value_threshold = 0
+ }
+ metric {
+ name = "ks_queue_my_queue01_age"
+ value_threshold = 0
+ }
+ metric {
+ name = "ks_queue_my_queue01_discarded"
+ value_threshold = 0
+ }
+ metric {
+ name = "ks_queue_my_queue01_waiters"
+ value_threshold = 0
+ }
+ metric {
+ name = "ks_queue_my_queue02_items"
+ value_threshold = 0
+ }
+ metric {
+ name = "ks_queue_my_queue02_bytes"
+ value_threshold = 0
+ }
+ metric {
+ name = "ks_queue_my_queue02_total_items"
+ value_threshold = 0
+ }
+ metric {
+ name = "ks_queue_my_queue02_logsize"
+ value_threshold = 0
+ }
+ metric {
+ name = "ks_queue_my_queue02_expired_items"
+ value_threshold = 0
+ }
+ metric {
+ name = "ks_queue_my_queue02_mem_items"
+ value_threshold = 0
+ }
+ metric {
+ name = "ks_queue_my_queue02_mem_bytes"
+ value_threshold = 0
+ }
+ metric {
+ name = "ks_queue_my_queue02_age"
+ value_threshold = 0
+ }
+ metric {
+ name = "ks_queue_my_queue02_discarded"
+ value_threshold = 0
+ }
+ metric {
+ name = "ks_queue_my_queue02_waiters"
+ value_threshold = 0
+ }
+}
Oops, something went wrong.

0 comments on commit 294d374

Please sign in to comment.