10 cfg = config.services.prometheus.exporters.bind;
11 inherit (lib) mkOption types concatStringsSep;
18 default = "http://localhost:8053/";
20 HTTP XML API address of an Bind server.
23 bindTimeout = mkOption {
27 Timeout for trying to get stats from Bind.
30 bindVersion = mkOption {
38 BIND statistics version. Can be detected automatically.
41 bindGroups = mkOption {
54 List of statistics to collect. Available: [server, view, tasks]
61 ${pkgs.prometheus-bind-exporter}/bin/bind_exporter \
62 --web.listen-address ${cfg.listenAddress}:${toString cfg.port} \
63 --bind.pid-file /var/run/named/named.pid \
64 --bind.timeout ${toString cfg.bindTimeout} \
65 --bind.stats-url ${cfg.bindURI} \
66 --bind.stats-version ${cfg.bindVersion} \
67 --bind.stats-groups ${concatStringsSep "," cfg.bindGroups} \
68 ${concatStringsSep " \\\n " cfg.extraFlags}