Documentation ¶
Index ¶
- type ByPodIP
- type PodInfo
- type ProbeResult
- type ProxySQL
- func (p *ProxySQL) Conn() *sql.DB
- func (p *ProxySQL) Core()
- func (p *ProxySQL) DumpData()
- func (p *ProxySQL) DumpQueryDigests(tmpdir string) (string, error)
- func (p *ProxySQL) DumpQueryRuleStats(tmpdir string) (string, error)
- func (p *ProxySQL) DumpQueryRules(tmpdir string) (string, error)
- func (p *ProxySQL) GetBackends() (map[string]int, error)
- func (p *ProxySQL) GetMissingCorePods() (int, error)
- func (p *ProxySQL) New(configs *configuration.Config) (*ProxySQL, error)
- func (p *ProxySQL) Ping() error
- func (p *ProxySQL) ProbeClients() (int, error)
- func (p *ProxySQL) RunProbes() (ProbeResult, error)
- func (p *ProxySQL) Satellite()
- func (p *ProxySQL) SatelliteResync() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PodInfo ¶
func GetCorePods ¶
func GetCorePods(settings *configuration.Config) ([]PodInfo, error)
type ProbeResult ¶
type ProbeResult struct { Status string `json:"status,omitempty"` Message string `json:"message,omitempty"` Clients int `json:"clients,omitempty"` Draining bool `json:"draining,omitempty"` Probe string `json:"probe,omitempty"` Backends struct { Total int `json:"total,omitempty"` Online int `json:"online,omitempty"` } `json:"backends,omitempty"` }
type ProxySQL ¶
type ProxySQL struct {
// contains filtered or unexported fields
}
func (*ProxySQL) DumpData ¶
func (p *ProxySQL) DumpData()
data we eventually want to load into snowflake
- stats_mysql_query_digests (maybe use _reset to reset the state)
- mysql_query_rules
- stats_mysql_query_rules
FIXME: all these functions dump to /tmp/XXXX/Y.csv; we want the directory to be configurable at least.
func (*ProxySQL) DumpQueryDigests ¶
ProxySQL docs: https://proxysql.com/documentation/stats-statistics/#stats_mysql_query_digest
func (*ProxySQL) DumpQueryRuleStats ¶
ProxySQL docs: https://proxysql.com/documentation/stats-statistics/#stats_mysql_query_rules
func (*ProxySQL) DumpQueryRules ¶
ProxySQL docs: https://proxysql.com/documentation/main-runtime/#mysql_query_rules
func (*ProxySQL) GetMissingCorePods ¶
func (*ProxySQL) ProbeClients ¶
func (*ProxySQL) RunProbes ¶
func (p *ProxySQL) RunProbes() (ProbeResult, error)
func (*ProxySQL) SatelliteResync ¶
Click to show internal directories.
Click to hide internal directories.