---
title: dnsmasq_exporter_config
aliases:
- ../../../configuration/integrations/dnsmasq-exporter-config/
---
dnsmasq_exporter_config
The dnsmasq_exporter_config
block configures the dnsmasq_exporter
integration, which is an embedded version of dnsmasq_exporter
. This allows for the collection of metrics from dnsmasq servers.
Note that currently, an Agent can only collect metrics from a single dnsmasq server. If you want to collect metrics from multiple servers, you can run multiple Agents and add labels using relabel_configs
to differentiate between the servers:
dnsmasq_exporter:
enabled: true
dnsmasq_address: dnsmasq-a:53
relabel_configs:
- source_labels: [__address__]
target_label: instance
replacement: dnsmasq-a
Full reference of options:
[enabled: <boolean> | default = false]
[instance: <string>]
[scrape_integration: <boolean> | default = <integrations_config.scrape_integrations>]
[scrape_interval: <duration> | default = <global_config.scrape_interval>]
[scrape_timeout: <duration> | default = <global_config.scrape_timeout>]
relabel_configs:
[- <relabel_config> ... ]
metric_relabel_configs:
[ - <relabel_config> ... ]
[wal_truncate_frequency: <duration> | default = "60m"]
[dnsmasq_address: <string> | default = "localhost:53"]
[leases_path: <string> | default = "/var/lib/misc/dnsmasq.leases"]