Permalink
Browse files

new module: mysql

  • Loading branch information...
1 parent 8a6eae7 commit 2291929447f8f2836e42b015d71fb87fcf143670 @hirose31 hirose31 committed with Ganglia Development Team Sep 21, 2010
Showing with 446 additions and 0 deletions.
  1. +11 −0 mysql/README.mkdn
  2. +121 −0 mysql/conf.d/mysql.conf
  3. +314 −0 mysql/python_modules/mysql.py
View
@@ -0,0 +1,11 @@
+mysql
+===============
+
+python module for ganglia 3.1.
+
+"mysql" send metrics on MySQL
+
+## AUTHOR
+
+HIROSE Masaaki <hirose31@gmail.com>
+
View
@@ -0,0 +1,121 @@
+modules {
+ module {
+ name = "mysql"
+ language = "python"
+ param dbuser {
+ value = "health"
+ }
+ param dbpasswd {
+ value = ""
+ }
+ param dbhost {
+ value = ""
+ }
+ }
+}
+
+collection_group {
+ collect_every = 20
+ time_threshold = 90
+ metric {
+ name = "my_select"
+ title = "SELECT query"
+ value_threshold = 0
+ }
+ metric {
+ name = "my_insert"
+ title = "INSERT query"
+ value_threshold = 0
+ }
+ metric {
+ name = "my_update"
+ title = "UPDATE query"
+ value_threshold = 0
+ }
+ metric {
+ name = "my_delete"
+ title = "DELETE query"
+ value_threshold = 0
+ }
+
+ metric {
+ name = "my_qps"
+ title = "queries per second"
+ value_threshold = 0
+ }
+ metric {
+ name = "my_slow_queries"
+ title = "total number of slow queries"
+ value_threshold = 0
+ }
+
+ metric {
+ name = "my_threads_connected"
+ title = "threads connected"
+ value_threshold = 0
+ }
+ metric {
+ name = "my_threads_running"
+ title = "threads running"
+ value_threshold = 0
+ }
+
+ metric {
+ name = "my_innodb_free"
+ title = "Innodb free area"
+ value_threshold = 0
+ }
+
+ metric {
+ name = "my_innodb_buffer_pool_hit"
+ title = "Innodb buffer pool hit ratio"
+ value_threshold = 0
+ }
+ metric {
+ name = "my_innodb_buffer_pool_dirty_pages"
+ title = "Innodb buffer pool dirty pages ratio"
+ value_threshold = 0
+ }
+ metric {
+ name = "my_innodb_buffer_pool_total"
+ title = "Innodb total size of buffer pool"
+ value_threshold = 0
+ }
+ metric {
+ name = "my_innodb_buffer_pool_free"
+ title = "Innodb free size of buffer pool"
+ value_threshold = 0
+ }
+
+ metric {
+ name = "my_qcache_free"
+ title = "query cache free"
+ value_threshold = 0
+ }
+
+ metric {
+ name = "my_key_cache"
+ title = "key cache hit ratio"
+ value_threshold = 0
+ }
+ metric {
+ name = "my_query_cache"
+ title = "query cache hit ratio"
+ value_threshold = 0
+ }
+ metric {
+ name = "my_table_lock_immediate"
+ title = "table lock immediate ratio"
+ value_threshold = 0
+ }
+ metric {
+ name = "my_thread_cache"
+ title = "my_thread_cache"
+ value_threshold = 0
+ }
+ metric {
+ name = "my_tmp_table_on_memory"
+ title = "tmp table on memory ratio"
+ value_threshold = 0
+ }
+}
Oops, something went wrong.

0 comments on commit 2291929

Please sign in to comment.