Caution
Grafana Alloy is the new name for our distribution of the OTel collector. Grafana Agent has been deprecated and is in Long-Term Support (LTS) through October 31, 2025. Grafana Agent will reach an End-of-Life (EOL) on November 1, 2025. Read more about why we recommend migrating to Grafana Alloy.
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: