Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
Types ¶
type Collector ¶
type Collector struct {
// contains filtered or unexported fields
}
Collector implements the Collector interface, exposing DNS latency information.
func (*Collector) Collect ¶
func (c *Collector) Collect(ch chan<- prometheus.Metric)
Collect implements the Collect method of the Collector interface.
func (*Collector) Describe ¶
func (c *Collector) Describe(ch chan<- *prometheus.Desc)
Describe implements the Describe method of the Collector interface.
type Config ¶
type Config struct { Logger micrologger.Logger NTPServers []string }
Config provides the necessary configuration for creating a Collector.
Click to show internal directories.
Click to hide internal directories.