From 65792204c3f8b3e4c8832202f5177dfc0f7fa02a Mon Sep 17 00:00:00 2001 From: Sven Rebhan Date: Thu, 29 Aug 2024 13:01:50 +0200 Subject: [PATCH] fix(inputs.mysql): Enforce float for all known floating-point information --- plugins/inputs/mysql/v2/convert.go | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/plugins/inputs/mysql/v2/convert.go b/plugins/inputs/mysql/v2/convert.go index 6349b27495925..4e9c09d04b645 100644 --- a/plugins/inputs/mysql/v2/convert.go +++ b/plugins/inputs/mysql/v2/convert.go @@ -94,8 +94,18 @@ var GlobalStatusConversions = map[string]ConversionFunc{ "ssl_verify_depth": ParseUint, // see https://galeracluster.com/library/documentation/galera-status-variables.html - "wsrep_local_index": ParseUint, - "wsrep_local_send_queue_avg": ParseFloat, + "wsrep_apply_oooe": ParseFloat, + "wsrep_apply_oool": ParseFloat, + "wsrep_apply_window": ParseFloat, + "wsrep_cert_deps_distance": ParseFloat, + "wsrep_commit_oooe": ParseFloat, + "wsrep_commit_oool": ParseFloat, + "wsrep_commit_window": ParseFloat, + "wsrep_flow_control_paused": ParseFloat, + "wsrep_flow_control_paused_ns": ParseFloat, + "wsrep_local_index": ParseUint, + "wsrep_local_recv_queue_avg": ParseFloat, + "wsrep_local_send_queue_avg": ParseFloat, } var GlobalVariableConversions = map[string]ConversionFunc{