Documentation ¶
Overview ¶
Package config handles the configuration parsing for FabricMon.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FabricmonConf ¶
type FabricmonConf struct { PollInterval time.Duration `yaml:"poll_interval"` ResetThreshold uint `yaml:"counter_reset_threshold"` Mkey uint64 `yaml:"m_key"` InfluxDB []InfluxDBConf Logging LoggingConf Topology TopologyConf }
FabricmonConf is the main configuration struct for FabricMon.
func ReadConfig ¶
func ReadConfig(r io.Reader) (*FabricmonConf, error)
type InfluxDBConf ¶
type InfluxDBConf struct { URL string Database string Username string Password string RetentionPolicy string `yaml:"retention_policy"` Timeout time.Duration }
InfluxDBConf holds the configuration values for a single InfluxDB instance.
type LoggingConf ¶
type TopologyConf ¶
Click to show internal directories.
Click to hide internal directories.