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 `river:"address,attr,optional"` // LeasesFile is the path to the dnsmasq leases file. LeasesFile string `river:"leases_file,attr,optional"` // ExposeLeases controls whether expose dnsmasq leases as metrics (high cardinality). ExposeLeases bool `river:"expose_leases,attr,optional"` }
Arguments configures the prometheus.exporter.dnsmasq component.
func (Arguments) Convert ¶
func (a Arguments) Convert() *dnsmasq_exporter.Config
func (*Arguments) SetToDefault ¶ added in v0.35.0
func (a *Arguments) SetToDefault()
SetToDefault implements river.Defaulter.
Click to show internal directories.
Click to hide internal directories.