Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DNSConf ¶
type DNSConf struct { Proto string `yaml:"protocol"` Server string `yaml:"server"` Recurse bool `yaml:"recurse"` QName string `yaml:"query_name"` QType string `yaml:"query_type"` }
DNSConf is exported to receive YAML configuration
func (DNSConf) Instrument ¶
func (c DNSConf) Instrument() map[string]prometheus.Collector
Instrument is a no-op to implement the `Configurer` interface.
func (DNSConf) MakeProber ¶
MakeProber constructs a `DNSProbe` object from the contents of the bound `DNSConf` object. If the `DNSConf` cannot be validated, an error appropriate for end-user consumption is returned instead.
func (DNSConf) UnmarshalSettings ¶
func (c DNSConf) UnmarshalSettings(settings []byte) (probers.Configurer, error)
UnmarshalSettings constructs a DNSConf object from YAML as bytes.
type DNSProbe ¶
type DNSProbe struct {
// contains filtered or unexported fields
}
DNSProbe is the exported 'Prober' object for monitors configured to perform DNS requests.
Click to show internal directories.
Click to hide internal directories.