diff options
author | Graham Christensen <graham@grahamc.com> | 2021-12-20 10:29:13 -0500 |
---|---|---|
committer | Graham Christensen <graham@grahamc.com> | 2021-12-20 10:29:13 -0500 |
commit | 1753f97e133b00097bec72b5666105d088c2f645 (patch) | |
tree | ace104b210b4abb71d4cb0501fe5c9e11cf3b1ec /nixos/modules/services/monitoring/prometheus/exporters/fastly.nix | |
parent | 7dcb25726b3a5ed3896fe38362f631ca5bed4a6e (diff) | |
download | nixpkgs-1753f97e133b00097bec72b5666105d088c2f645.tar nixpkgs-1753f97e133b00097bec72b5666105d088c2f645.tar.gz nixpkgs-1753f97e133b00097bec72b5666105d088c2f645.tar.bz2 nixpkgs-1753f97e133b00097bec72b5666105d088c2f645.tar.lz nixpkgs-1753f97e133b00097bec72b5666105d088c2f645.tar.xz nixpkgs-1753f97e133b00097bec72b5666105d088c2f645.tar.zst nixpkgs-1753f97e133b00097bec72b5666105d088c2f645.zip |
services.prometheus.exporters.fastly: fixup broken module config
Diffstat (limited to 'nixos/modules/services/monitoring/prometheus/exporters/fastly.nix')
-rw-r--r-- | nixos/modules/services/monitoring/prometheus/exporters/fastly.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nixos/modules/services/monitoring/prometheus/exporters/fastly.nix b/nixos/modules/services/monitoring/prometheus/exporters/fastly.nix index 5b35bb29a30..551c61ba9e4 100644 --- a/nixos/modules/services/monitoring/prometheus/exporters/fastly.nix +++ b/nixos/modules/services/monitoring/prometheus/exporters/fastly.nix @@ -32,10 +32,10 @@ in script = '' ${optionalString (cfg.tokenPath != null) "export FASTLY_API_TOKEN=$(cat ${toString cfg.tokenPath})"} - ${pkgs.fastly-exporter}/bin/fastly-exporter \ - -endpoint http://${cfg.listenAddress}:${cfg.port}/metrics + ${pkgs.prometheus-fastly-exporter}/bin/fastly-exporter \ + -endpoint http://${cfg.listenAddress}:${toString cfg.port}/metrics ${optionalString cfg.debug "-debug true"} \ - ${optionalString cfg.configFile "-config-file ${cfg.configFile}"} + ${optionalString (cfg.configFile != null) "-config-file ${cfg.configFile}"} ''; }; } |