From: Marek Becka Date: Mon, 11 Aug 2014 18:55:39 +0000 (+0200) Subject: submit mysql_bpool_bytes as gauge X-Git-Tag: collectd-5.5.0~134^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4039e1c9a793d6cf5da571ba29f8d5fe70fa4238;p=collectd.git submit mysql_bpool_bytes as gauge --- diff --git a/src/mysql.c b/src/mysql.c index edff4ad8..c182cd24 100644 --- a/src/mysql.c +++ b/src/mysql.c @@ -708,9 +708,9 @@ static int mysql_read (user_data_t *ud) else if (strcmp (key, "Innodb_buffer_pool_write_requests") == 0) counter_submit ("mysql_bpool_counters", "write_requests", val, db); else if (strcmp (key, "Innodb_buffer_pool_bytes_data") == 0) - counter_submit ("mysql_bpool_bytes", "data", val, db); + gauge_submit ("mysql_bpool_bytes", "data", val, db); else if (strcmp (key, "Innodb_buffer_pool_bytes_dirty") == 0) - counter_submit ("mysql_bpool_bytes", "dirty", val, db); + gauge_submit ("mysql_bpool_bytes", "dirty", val, db); /* data */ if (strcmp (key, "Innodb_data_fsyncs") == 0)