summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 00f9279)
raw | patch | inline | side by side (parent: 00f9279)
author | Pavel Rochnyack <pavel2000@ngs.ru> | |
Sat, 27 Feb 2016 07:51:47 +0000 (14:51 +0700) | ||
committer | Pavel Rochnyack <pavel2000@ngs.ru> | |
Sat, 27 Feb 2016 07:51:47 +0000 (14:51 +0700) |
src/mysql.c | patch | blob | history | |
src/types.db | patch | blob | history |
diff --git a/src/mysql.c b/src/mysql.c
index a8a8e86d906f79572754dab09a7af08931078a03..88a56dc3ea983b1b0b41d78dbbb0615fa43ba93d 100644 (file)
--- a/src/mysql.c
+++ b/src/mysql.c
}
else if (strncmp (key, "Sort_", strlen ("Sort_")) == 0)
{
- counter_submit ("mysql_sort", key + strlen ("Sort_"),
- val, db);
+ if (strcmp (key, "Sort_merge_passes") == 0)
+ counter_submit ("mysql_sort_merge_passes", NULL, val, db);
+ else if (strcmp (key, "Sort_rows") == 0)
+ counter_submit ("mysql_sort_rows", NULL, val, db);
+ else if (strcmp (key, "Sort_range") == 0)
+ counter_submit ("mysql_sort", "range", val, db);
+ else if (strcmp (key, "Sort_scan") == 0)
+ counter_submit ("mysql_sort", "scan", val, db);
+
}
}
mysql_free_result (res); res = NULL;
diff --git a/src/types.db b/src/types.db
index 5847218aa0fe1cb17a057e98bd596849cc7af4ce..e2c3e6d8ec2b3349c78d346e1fff213ef108fd40 100644 (file)
--- a/src/types.db
+++ b/src/types.db
mysql_innodb_rows value:DERIVE:0:U
mysql_select value:DERIVE:0:U
mysql_sort value:DERIVE:0:U
+mysql_sort_merge_passes value:DERIVE:0:U
+mysql_sort_rows value:DERIVE:0:U
nfs_procedure value:DERIVE:0:U
nginx_connections value:GAUGE:0:U
nginx_requests value:DERIVE:0:U