services.prometheus.exporters.fastly: fixup broken module config
This commit is contained in:
parent
7dcb25726b
commit
1753f97e13
1 changed files with 3 additions and 3 deletions
|
@ -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}"}
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue