Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Targets []TargetConfig `yaml:"targets"` Ping struct { Interval duration `yaml:"interval"` Timeout duration `yaml:"timeout"` History int `yaml:"history-size"` Size uint16 `yaml:"payload-size"` } `yaml:"ping"` DNS struct { Refresh duration `yaml:"refresh"` Nameserver string `yaml:"nameserver"` } `yaml:"dns"` Options struct { DisableIPv6 bool `yaml:"disableIPv6"` // prohibits DNS resolved IPv6 addresses DisableIPv4 bool `yaml:"disableIPv4"` // prohibits DNS resolved IPv4 addresses } `yaml:"options"` }
Config represents configuration for the exporter.
func (*Config) TargetConfigByAddr ¶
func (cfg *Config) TargetConfigByAddr(addr string) TargetConfig
type TargetConfig ¶
func (TargetConfig) MarshalYAML ¶
func (d TargetConfig) MarshalYAML() (interface{}, error)
func (*TargetConfig) UnmarshalYAML ¶
func (d *TargetConfig) UnmarshalYAML(unmashal func(interface{}) error) error
UnmarshalYAML implements yaml.Unmarshaler interface.
Click to show internal directories.
Click to hide internal directories.