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 (#15791)
  • Loading branch information
srebhan authored Sep 9, 2024
1 parent c3e5319 commit 2e056a8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions plugins/inputs/mysql/v2/convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,17 @@ var GlobalStatusConversions = map[string]ConversionFunc{
"ssl_verify_depth": ParseUint,

// see https://galeracluster.com/library/documentation/galera-status-variables.html
"wsrep_apply_oooe": ParseFloat,
"wsrep_apply_oool": ParseFloat,
"wsrep_apply_window": ParseFloat,
"wsrep_cert_deps_distance": ParseFloat,
"wsrep_cert_interval": ParseFloat,
"wsrep_commit_oooe": ParseFloat,
"wsrep_commit_oool": ParseFloat,
"wsrep_commit_window": ParseFloat,
"wsrep_flow_control_paused": ParseFloat,
"wsrep_local_index": ParseUint,
"wsrep_local_recv_queue_avg": ParseFloat,
"wsrep_local_send_queue_avg": ParseFloat,
}

Expand Down

0 comments on commit 2e056a8

Please sign in to comment.