10 cfg = config.services.prometheus.exporters.influxdb;
11 inherit (lib) mkOption types concatStringsSep;
16 sampleExpiry = mkOption {
20 description = "How long a sample is valid for";
22 udpBindAddress = mkOption {
25 example = "192.0.2.1:9122";
26 description = "Address on which to listen for udp packets";
31 RuntimeDirectory = "prometheus-influxdb-exporter";
33 ${pkgs.prometheus-influxdb-exporter}/bin/influxdb_exporter \
34 --web.listen-address ${cfg.listenAddress}:${toString cfg.port} \
35 --influxdb.sample-expiry ${cfg.sampleExpiry} ${concatStringsSep " " cfg.extraFlags}