Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitializeMetrics ¶
func InitializeMetrics(options *Options)
InitializeMetrics and export metrics.
Types ¶
type DNSProbeOption ¶
type DNSProbeOption struct { // Label to use for healthcheck URL Label string // Endpoint to send DNS requests to. Server string // Name to resolve to test endpoint. Name string // Interval to use for probing Interval time.Duration }
DNSProbeOption for periodic DNS health check and latency probes.
type Options ¶
type Options struct { DnsMasqPort int DnsMasqAddr string DnsMasqPollIntervalMs int Probes []DNSProbeOption PrometheusAddr string PrometheusPort int PrometheusPath string PrometheusNamespace string }
Options for the daemon
func NewOptions ¶
func NewOptions() *Options
NewOptions creates a new options struct with default values.
Click to show internal directories.
Click to hide internal directories.