nixos/prometheus-exporters: fix nginx exporter startup
When nginx is enabled on the same host the nginx exporter is, the exporter needs to start after nginx.
This commit is contained in:
parent
6127bf9837
commit
adc5ae70bf
@ -197,6 +197,9 @@ in
|
||||
services.prometheus.exporters.minio.minioAccessSecret = mkDefault config.services.minio.secretKey;
|
||||
})] ++ [(mkIf config.services.rspamd.enable {
|
||||
services.prometheus.exporters.rspamd.url = mkDefault "http://localhost:11334/stat";
|
||||
})] ++ [(mkIf config.services.nginx.enable {
|
||||
systemd.services.prometheus-nginx-exporter.after = [ "nginx.service" ];
|
||||
systemd.services.prometheus-nginx-exporter.requires = [ "nginx.service" ];
|
||||
})] ++ (mapAttrsToList (name: conf:
|
||||
mkExporterConf {
|
||||
inherit name;
|
||||
|
Loading…
Reference in New Issue
Block a user