Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigurationSettings ¶
type ConfigurationSettings struct { ListenPort int DataCenter string Environment string Domain string EnableProfiling bool // enable pprof profiling http api MySQLStore MySQLConfigurationSettings }
ConfigurationSettings models a set of configurable values, that can be provided by the user via one or several JSON formatted files.
Some of the settings have reasonable default values, and some other (like database credentials) are strictly expected from user.
func NewConfigurationSettings ¶ added in v0.19.0
func NewConfigurationSettings() *ConfigurationSettings
NewConfigurationSettings creates new throttler configuration settings.
type MySQLConfigurationSettings ¶
type MySQLConfigurationSettings struct { CacheMillis int // optional, if defined then probe result will be cached, and future probes may use cached value Port int // Specify if different than 3306; applies to all clusters IgnoreDialTCPErrors bool // Skip hosts where a metric cannot be retrieved due to TCP dial errors IgnoreHostsCount int // Number of hosts that can be skipped/ignored even on error or on exceeding thresholds IgnoreHosts []string // If non empty, substrings to indicate hosts to be ignored/skipped }
MySQLConfigurationSettings has the general configuration for all MySQL clusters
Click to show internal directories.
Click to hide internal directories.