Code

submit mysql_bpool_bytes as gauge
authorMarek Becka <marek.becka@superhosting.cz>
Mon, 11 Aug 2014 18:55:39 +0000 (20:55 +0200)
committerMarek Becka <marek.becka@superhosting.cz>
Mon, 11 Aug 2014 18:55:39 +0000 (20:55 +0200)
src/mysql.c

index edff4ad8769e0da338221e93dda0fd22133356fb..c182cd249c7c96f8dd383303b2affc95b3ee6d76 100644 (file)
@@ -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)