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
  • Loading branch information
srebhan authored and asaharn committed Oct 16, 2024
1 parent c83710e commit da4c257
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 da4c257

Please sign in to comment.