Documentation ¶
Overview ¶
Package dnsmasq_exporter embeds https://github.com/google/dnsmasq_exporter
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(log log.Logger, c *Config) (integrations.Integration, error)
New creates a new dnsmasq_exporter integration. The integration scrapes metrics from a dnsmasq server.
Types ¶
type Config ¶
type Config struct { Common config.Common `yaml:",inline"` // DnsmasqAddress is the address of the dnsmasq server (host:port). DnsmasqAddress string `yaml:"dnsmasq_address"` // Path to the dnsmasq leases file. LeasesPath string `yaml:"leases_path"` }
Config controls the dnsmasq_exporter integration.
var DefaultConfig Config = Config{
DnsmasqAddress: "localhost:53",
LeasesPath: "/var/lib/misc/dnsmasq.leases",
}
DefaultConfig is the default config for dnsmasq_exporter.
func (*Config) CommonConfig ¶
func (*Config) NewIntegration ¶ added in v0.10.0
func (c *Config) NewIntegration(l log.Logger) (integrations.Integration, error)
func (*Config) UnmarshalYAML ¶
UnmarshalYAML implements yaml.Unmarshaler for Config.
Click to show internal directories.
Click to hide internal directories.