Skip to content

Commit

Permalink
fix(inputs.mysql): Enforce float for all known floating-point informa…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
srebhan committed Aug 30, 2024
1 parent 256f673 commit 6579220
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions plugins/inputs/mysql/v2/convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit 6579220

Please sign in to comment.