dnsmasq

package
v1.4.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultArguments = Arguments{
	Address:      "localhost:53",
	LeasesFile:   "/var/lib/misc/dnsmasq.leases",
	ExposeLeases: false,
}

DefaultArguments holds the default arguments for the prometheus.exporter.dnsmasq component.

Functions

This section is empty.

Types

type Arguments

type Arguments struct {
	// Address is the address of the dnsmasq server to connect to (host:port).
	Address string `alloy:"address,attr,optional"`

	// LeasesFile is the path to the dnsmasq leases file.
	LeasesFile string `alloy:"leases_file,attr,optional"`

	// ExposeLeases controls whether expose dnsmasq leases as metrics (high cardinality).
	ExposeLeases bool `alloy:"expose_leases,attr,optional"`
}

Arguments configures the prometheus.exporter.dnsmasq component.

func (Arguments) Convert

func (a Arguments) Convert() *dnsmasq_exporter.Config

func (*Arguments) SetToDefault

func (a *Arguments) SetToDefault()

SetToDefault implements syntax.Defaulter.

Jump to

Keyboard shortcuts

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