]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
MySQL plugin: Fix incorrect WSREP/Galera metric types. 4184/head
authorFlorian Forster <octo@collectd.org>
Wed, 6 Dec 2023 08:19:49 +0000 (09:19 +0100)
committerFlorian Forster <octo@collectd.org>
Wed, 6 Dec 2023 08:19:49 +0000 (09:19 +0100)
Fixes: #4137
src/mysql.c

index 02d605167811792992837af06619c65a25e3b30a..10a0e4a9a27dc5471fc6c4994aacfaf137a5e502 100644 (file)
@@ -657,14 +657,14 @@ static int mysql_read_wsrep_stats(mysql_database_t *db, MYSQL *con) {
     int ds_type;
   } metrics[] = {
 
-      {"wsrep_apply_oooe", "operations", DS_TYPE_DERIVE},
-      {"wsrep_apply_oool", "operations", DS_TYPE_DERIVE},
+      {"wsrep_apply_oooe", "operations", DS_TYPE_GAUGE},
+      {"wsrep_apply_oool", "operations", DS_TYPE_GAUGE},
       {"wsrep_causal_reads", "operations", DS_TYPE_DERIVE},
-      {"wsrep_commit_oooe", "operations", DS_TYPE_DERIVE},
-      {"wsrep_commit_oool", "operations", DS_TYPE_DERIVE},
+      {"wsrep_commit_oooe", "operations", DS_TYPE_GAUGE},
+      {"wsrep_commit_oool", "operations", DS_TYPE_GAUGE},
       {"wsrep_flow_control_recv", "operations", DS_TYPE_DERIVE},
       {"wsrep_flow_control_sent", "operations", DS_TYPE_DERIVE},
-      {"wsrep_flow_control_paused", "operations", DS_TYPE_DERIVE},
+      {"wsrep_flow_control_paused", "operations", DS_TYPE_GAUGE},
       {"wsrep_local_bf_aborts", "operations", DS_TYPE_DERIVE},
       {"wsrep_local_cert_failures", "operations", DS_TYPE_DERIVE},
       {"wsrep_local_commits", "operations", DS_TYPE_DERIVE},