summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bfd449e)
raw | patch | inline | side by side (parent: bfd449e)
author | Wilson Felipe <wfelipe@gmail.com> | |
Mon, 4 Feb 2013 19:31:11 +0000 (11:31 -0800) | ||
committer | Florian Forster <octo@collectd.org> | |
Wed, 6 Aug 2014 13:34:33 +0000 (15:34 +0200) |
src/mysql.c | patch | blob | history | |
src/types.db | patch | blob | history |
diff --git a/src/mysql.c b/src/mysql.c
index df1e7b67c66c12a6535fde52db15e4f1a5a9f237..0f8d5a64d04bd637d007fdca5a4baf8e15e47654 100644 (file)
--- a/src/mysql.c
+++ b/src/mysql.c
else if (strcmp (key, "Innodb_rows_updated") == 0)
counter_submit ("mysql_innodb_rows", "updated", val, db);
}
+ else if (strncmp (key, "Select_",
+ strlen ("Select_")) == 0)
+ {
+ counter_submit ("mysql_select",
+ key + strlen ("Select_"),
+ val, db);
+ }
+ else if (strncmp (key, "Sort_",
+ strlen ("Sort_")) == 0)
+ {
+ counter_submit ("mysql_sort",
+ key + strlen ("Sort_"),
+ val, db);
+ }
}
mysql_free_result (res); res = NULL;
diff --git a/src/types.db b/src/types.db
index e24a78c01b5d9faa15d7474800dd63c84b7c4751..fb9514211195bcb9f82d619f68d900c4d3509cca 100644 (file)
--- a/src/types.db
+++ b/src/types.db
mysql_innodb_data value:DERIVE:0:U
mysql_innodb_dblwr value:DERIVE:0:U
mysql_innodb_rows value:DERIVE:0:U
+mysql_select value:DERIVE:0:U
+mysql_sort value:DERIVE:0:U
nfs_procedure value:DERIVE:0:U
nginx_connections value:GAUGE:0:U
nginx_requests value:DERIVE:0:U