Skip to content

Commit

Permalink
new module: mysql
Browse files Browse the repository at this point in the history
  • Loading branch information
hirose31 authored and Ganglia Development Team committed Sep 21, 2010
1 parent 8a6eae7 commit 2291929
Show file tree
Hide file tree
Showing 3 changed files with 446 additions and 0 deletions.
11 changes: 11 additions & 0 deletions mysql/README.mkdn
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
mysql
===============

python module for ganglia 3.1.

"mysql" send metrics on MySQL

## AUTHOR

HIROSE Masaaki <hirose31@gmail.com>

121 changes: 121 additions & 0 deletions mysql/conf.d/mysql.conf
Original file line number Diff line number Diff line change
@@ -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
}
}
Loading

0 comments on commit 2291929

Please sign in to comment.