summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1e69f71)
raw | patch | inline | side by side (parent: 1e69f71)
author | skob <skob@me.com> | |
Tue, 28 Jun 2016 09:06:31 +0000 (13:06 +0400) | ||
committer | Карамышев Степан <karamyshev@corp.sputnik.ru> | |
Fri, 15 Jul 2016 10:04:30 +0000 (13:04 +0300) |
src/mysql.c | patch | blob | history | |
src/types.db | patch | blob | history |
diff --git a/src/mysql.c b/src/mysql.c
index a2394137532d8fe54560eb1bc69a30d99b6357d5..9b8d6cf3aba8c97117f50e7c934fd008f44b8b33 100644 (file)
--- a/src/mysql.c
+++ b/src/mysql.c
counter_submit ("mysql_sort", "scan", val, db);
}
+ else if (strncmp (key, "Slow_queries", strlen ("Slow_queries")) == 0)
+ {
+ counter_submit ("mysql_slow_queries", NULL , val, db);
+ }
}
mysql_free_result (res); res = NULL;
diff --git a/src/types.db b/src/types.db
index e328a46abefce4f707a8ffd864880127aa8e6352..77a9d06f68e02a0eb86e140824f902d1872c1e34 100644 (file)
--- a/src/types.db
+++ b/src/types.db
mysql_sort value:DERIVE:0:U
mysql_sort_merge_passes value:DERIVE:0:U
mysql_sort_rows value:DERIVE:0:U
+mysql_slow_queries value:DERIVE:0:U
nfs_procedure value:DERIVE:0:U
nginx_connections value:GAUGE:0:U
nginx_requests value:DERIVE:0:U