nixpkgs/nixos/modules/services/monitoring/prometheus/exporters/domain.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
415 B
Nix
Raw Normal View History

{ config, lib, pkgs, options, ... }:
2021-04-04 20:25:12 +00:00
let
cfg = config.services.prometheus.exporters.domain;
inherit (lib) concatStringsSep;
2021-04-04 20:25:12 +00:00
in
{
port = 9222;
serviceOpts = {
serviceConfig = {
ExecStart = ''
${pkgs.prometheus-domain-exporter}/bin/domain_exporter \
--bind ${cfg.listenAddress}:${toString cfg.port} \
${concatStringsSep " \\\n " cfg.extraFlags}
'';
};
};
}