Skip to content
This repository has been archived by the owner on Oct 18, 2023. It is now read-only.

Commit

Permalink
Handle non-tls columns for mysql input (influxdata#4973)
Browse files Browse the repository at this point in the history
  • Loading branch information
glinton authored and danielnelson committed Nov 15, 2018
1 parent 91ecec7 commit 46b340c
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions plugins/inputs/mysql/mysql.go
Original file line number Diff line number Diff line change
Expand Up @@ -995,6 +995,30 @@ func getColSlice(l int) ([]interface{}, error) {
&total_ssl_connections,
&max_statement_time_exceeded,
}, nil
case 21: // mysql 5.5
return []interface{}{
&user,
&total_connections,
&concurrent_connections,
&connected_time,
&busy_time,
&cpu_time,
&bytes_received,
&bytes_sent,
&binlog_bytes_written,
&rows_fetched,
&rows_updated,
&table_rows_read,
&select_commands,
&update_commands,
&other_commands,
&commit_transactions,
&rollback_transactions,
&denied_connections,
&lost_connections,
&access_denied,
&empty_queries,
}, nil
case 22: // percona
return []interface{}{
&user,
Expand Down

0 comments on commit 46b340c

Please sign in to comment.