mysql plugin conf field names are lowercase-underscored

This commit is contained in:
Maksadbek 2016-03-23 02:21:03 +05:00
parent 3144351aa2
commit 67d1e7a745
1 changed files with 29 additions and 29 deletions

View File

@ -15,21 +15,21 @@ import (
) )
type Mysql struct { type Mysql struct {
Servers []string Servers []string `toml:"servers"`
PerfEventsStatementsDigestTextLimit uint32 PerfEventsStatementsDigestTextLimit uint32 `toml:"perf_events_statements_digest_text_limit"`
PerfEventsStatementsLimit uint32 PerfEventsStatementsLimit uint32 `toml:"perf_events_statements_limit"`
PerfEventsStatementsTimeLimit uint32 PerfEventsStatementsTimeLimit uint32 `toml:"perf_events_statemetns_time_limit"`
TableSchemaDatabases []string TableSchemaDatabases []string `toml:"table_schema_databases"`
GatherProcessList bool GatherProcessList bool `toml:"gather_process_list"`
GatherInfoSchemaAutoInc bool GatherInfoSchemaAutoInc bool `toml:"gather_info_schema_auto_inc"`
GatherSlaveStatus bool GatherSlaveStatus bool `toml:"gather_slave_status"`
GatherBinaryLogs bool GatherBinaryLogs bool `toml:"gather_binary_logs"`
GatherTableIOWaits bool GatherTableIOWaits bool `toml:"gather_table_io_waits"`
GatherIndexIOWaits bool GatherIndexIOWaits bool `toml:"gather_index_io_waits"`
GatherTableSchema bool GatherTableSchema bool `toml:"gather_table_schema"`
GatherFileEventsStats bool GatherFileEventsStats bool `toml:"gather_file_events_stats"`
GatherPerfEventsStatements bool GatherPerfEventsStatements bool `toml:"gather_perf_events_statements"`
IntervalSlow string IntervalSlow string `toml:"interval_slow"`
} }
var sampleConfig = ` var sampleConfig = `
@ -42,21 +42,21 @@ var sampleConfig = `
# #
# If no servers are specified, then localhost is used as the host. # If no servers are specified, then localhost is used as the host.
servers = ["tcp(127.0.0.1:3306)/"] servers = ["tcp(127.0.0.1:3306)/"]
PerfEventsStatementsDigestTextLimit = 120 perf_events_statements_digest_text_limit = 120
PerfEventsStatementsLimit = 250 perf_events_statements_limit = 250
PerfEventsStatementsTimeLimit = 86400 perf_events_statements_time_limit = 86400
TableSchemaDatabases = [] table_schema_databases = []
GatherProcessList = false gather_process_list = true
GatherInfoSchemaAutoInc = false gather_info_schema_auto_inc = true
GatherSlaveStatus = false gather_slave_status = true
GatherBinaryLogs = false gather_binary_logs = false
GatherTableIOWaits = false gather_table_io_waits = false
GatherIndexIOWaits = false gather_index_io_waits = false
GatherTableSchema = false gather_table_schema = false
GatherFileEventsStats = false gather_file_events_stats = false
GatherPerfEventsStatements = false gather_perf_events_statements = false
# Some queries we may want to run less often (such as SHOW GLOBAL VARIABLES) # Some queries we may want to run less often (such as SHOW GLOBAL VARIABLES)
IntervalSlow = "30m" interval_slow = "30m"
` `
var defaultTimeout = time.Second * time.Duration(5) var defaultTimeout = time.Second * time.Duration(5)