From 01412323b712d753cca9aada2e439f6c46e0d30d Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Wed, 6 Dec 2023 09:19:49 +0100 Subject: [PATCH] MySQL plugin: Fix incorrect WSREP/Galera metric types. Fixes: #4137 --- src/mysql.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/mysql.c b/src/mysql.c index 02d605167..10a0e4a9a 100644 --- a/src/mysql.c +++ b/src/mysql.c @@ -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}, -- 2.47.2