Should be fairly self explanatory. Thanks! -- ------------------------------------------------------------------------ 1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70 3F8C 75B8 8FFB DB9B 8C1C Philip M. Gollucci (pgollu...@p6m7g8.com) c: 703.336.9354 VP Infrastructure, Apache Software Foundation Committer, FreeBSD Foundation Consultant, P6M7G8 Inc. Director Operations, Ridecharge Inc.
Work like you don't need the money, love like you'll never get hurt, and dance like nobody's watching.
>From 4f665fa1ec49bca563b357ea99b485cead24939f Mon Sep 17 00:00:00 2001 From: Philip M. Gollucci <pgollu...@p6m7g8.com> Date: Fri, 7 Oct 2011 15:18:07 +0000 Subject: [PATCH 3762/3763] Add tmp table metrics/types --- src/mysql.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/src/mysql.c b/src/mysql.c index 6b63678..f222173 100644 --- a/src/mysql.c +++ b/src/mysql.c @@ -610,6 +610,14 @@ static int mysql_read (user_data_t *ud) key + strlen ("Com_"), val, db); } + else if (strncmp (key, "Created_", + strlen ("Created_")) == 0) + { + if (val == 0ULL) + continue; + + counter_submit("mysql_commands", key + strlen ("Created_"), val, db); + } else if (strncmp (key, "Handler_", strlen ("Handler_")) == 0) { -- 1.7.4.5
>From fba725654a724fc4cfd884254df4315913ebedf0 Mon Sep 17 00:00:00 2001 From: Philip M. Gollucci <pgollu...@p6m7g8.com> Date: Fri, 7 Oct 2011 15:24:28 +0000 Subject: [PATCH 3763/3763] Add aborted metrics/types --- src/mysql.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/src/mysql.c b/src/mysql.c index f222173..34fa9ab 100644 --- a/src/mysql.c +++ b/src/mysql.c @@ -618,6 +618,14 @@ static int mysql_read (user_data_t *ud) counter_submit("mysql_commands", key + strlen ("Created_"), val, db); } + else if (strncmp (key, "Aborted_", + strlen ("Aborted_")) == 0) + { + if (val == 0ULL) + continue; + + counter_submit("mysql_commands", key + strlen ("Aborted_"), val, db); + } else if (strncmp (key, "Handler_", strlen ("Handler_")) == 0) { -- 1.7.4.5
_______________________________________________ collectd mailing list collectd@verplant.org http://mailman.verplant.org/listinfo/collectd