Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { NJmon struct { Address string `yaml:"address"` Port string `yaml:"port"` } `yaml:"njmon"` Logging struct { Journal bool `yaml:"journal"` LevelStr string `yaml:"level"` } `yaml:"logging"` Exporter struct { Address string `yaml:"address"` Port string `yaml:"port"` } `yaml:"exporter"` InstanceLabel struct { Name string `yaml:"label_name"` Hit string `yaml:"label_hit"` Miss string `yaml:"label_miss"` Instances []string `yaml:"hit_instances"` } `yaml:"instance_label"` Thresholds struct { // AliveTimeout is the period of time (in seconds) a host is considered alive without checking in. AliveTimeout int `yaml:"alive_timeout"` // ConnectionTimeout is the maximum time (in seconds) to wait for data. ConnectionTimout int `yaml:"connection_timeout"` } `yaml:"thresholds"` }
Config contains the njmon_exporter configuration data
func ParseConfig ¶
ParseConfig imports a yaml formatted config file into a Config struct
Click to show internal directories.
Click to hide internal directories.