Documentation ¶
Index ¶
Constants ¶
View Source
const (
MonitorConfPath = "conf/monitor.yaml"
)
Variables ¶
This section is empty.
Functions ¶
func GetClusterManagerCIDR ¶
func GetDatabaseCIDR ¶
func GetMaxscaleCIDR ¶
Types ¶
type MonitorConf ¶
type MonitorConf struct { Collector struct { Database struct { Socketpath string `yaml:"socketpath"` Username string `yaml:"username"` Database string `yaml:"database"` ListenCIDR string `yaml:"cidr"` ListenAddr *net.IPNet } `yaml:"database"` Maxscale struct { Path string `yaml:"path"` ListenCIDR string `yaml:"cidr"` ListenAddr *net.IPNet } ClusterManager struct { LogPath string `yaml:"logpath"` ListenCIDR string `yaml:"cidr"` ListenAddr *net.IPNet } `yaml:"clustermanager"` } `yaml:"collector"` Service struct { Netdev string `yaml:"netdev"` Port int `yaml:"port"` } `yaml:"service"` }
var (
MonitorConfInfo *MonitorConf
)
func GetMonitorConf ¶
func GetMonitorConf() (*MonitorConf, error)
Click to show internal directories.
Click to hide internal directories.