ntp

package
v1.18.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

Types

type Collector

type Collector struct {
	// contains filtered or unexported fields
}

Collector implements the Collector interface, exposing DNS latency information.

func New

func New(config Config) (*Collector, error)

New creates a Collector, given a Config.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL