prometheus.prometheus.dns_exporter role – Prometheus DNS Exporter

Note

This role is part of the prometheus.prometheus collection (version 0.26.2).

It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.

To install it use: ansible-galaxy collection install prometheus.prometheus.

To use it in a playbook, specify: prometheus.prometheus.dns_exporter.

Entry point main – Prometheus DNS Exporter

Synopsis

Parameters

Parameter

Comments

dns_exporter_basic_auth_users

dictionary

Dictionary of users and password for basic authentication. Passwords are automatically hashed with bcrypt.

dns_exporter_config_dir

string

Path to directory with dns_exporter configuration

Default: "/etc/dns_exporter"

dns_exporter_config_template

string

Configuration template for dns_exporter

Default: "dns_exporter.yml.j2"

dns_exporter_debug_enable

boolean

Enable or not daemon debug

Choices:

  • false ← (default)

  • true

dns_exporter_disabled_collectors

list / elements=string

List of disabled collectors.

By default dns_exporter disables collectors listed here.

dns_exporter_enabled_collectors

list / elements=string

List of dicts defining additionally enabled collectors and their configuration.

It adds collectors to those enabled by default.

Default: ["systemd", {"textfile": {"directory": "{{ dns_exporter_textfile_dir }}"}}]

dns_exporter_home

string

Home of dns_exporter user and base file locations

Default: "/var/lib/dns_exporter"

dns_exporter_http_server_config

dictionary

Config for HTTP/2 support.

Keys and values are the same as in dns_exporter docs.

dns_exporter_system_group

string

Advanced

System group for dns exporter

Default: "dns-exp"

dns_exporter_system_user

string

Advanced

DNS exporter user

Default: "dns-exp"

dns_exporter_textfile_dir

string

Directory used by the Textfile Collector.

To get permissions to write metrics in this directory, users must be in dns-exp system group.

Note: More information in TROUBLESHOOTING.md guide.

Default: "/var/lib/dns_exporter"

dns_exporter_tls_server_config

dictionary

Configuration for TLS authentication.

Keys and values are the same as in dns_exporter docs.

dns_exporter_version

string

DNS exporter package version. Also accepts latest as parameter.

Default: "1.0.0"

dns_exporter_virtualenv

string

Python virtualenv filepath for dns_exporter

Default: "/var/lib/dns_exporter/venv"

dns_exporter_web_listen_address

string

Address on which dns exporter will listen

Default: "0.0.0.0:15353"

dns_exporter_web_listen_ip

string

IP address for dns_exporter to listen to

Default: "127.0.0.1"

dns_exporter_web_listen_port

string

Port for dns_exporter to listen to

Default: "15353"

Authors

  • Prometheus Community