server

package
v0.0.0-...-909f21c Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2016 License: Apache-2.0, Apache-2.0 Imports: 10 Imported by: 0

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.

type Server

type Server interface {
	Run(options *Options)
}

Server that runs the dnsmasq-metrics daemon.

func NewServer

func NewServer() Server

NewServer creates a new server instance

Jump to

Keyboard shortcuts

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