summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorRobin Gloster <mail@glob.in>2017-08-22 20:22:31 +0200
committerRobin Gloster <mail@glob.in>2017-08-22 20:26:18 +0200
commitce7e2c06b10cdc95e976f635b5918063b25502d7 (patch)
tree69ed2e7783a418e432ae8567644f83b9a585f515 /nixos
parente6b77e2198a269ab114c1151deefbce19bfcab61 (diff)
downloadnixpkgs-ce7e2c06b10cdc95e976f635b5918063b25502d7.tar
nixpkgs-ce7e2c06b10cdc95e976f635b5918063b25502d7.tar.gz
nixpkgs-ce7e2c06b10cdc95e976f635b5918063b25502d7.tar.bz2
nixpkgs-ce7e2c06b10cdc95e976f635b5918063b25502d7.tar.lz
nixpkgs-ce7e2c06b10cdc95e976f635b5918063b25502d7.tar.xz
nixpkgs-ce7e2c06b10cdc95e976f635b5918063b25502d7.tar.zst
nixpkgs-ce7e2c06b10cdc95e976f635b5918063b25502d7.zip
prometheus-unifi-exporter: make ordering more robust
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/monitoring/prometheus/unifi-exporter.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/services/monitoring/prometheus/unifi-exporter.nix b/nixos/modules/services/monitoring/prometheus/unifi-exporter.nix
index e3059e48509..0a56d6ae95a 100644
--- a/nixos/modules/services/monitoring/prometheus/unifi-exporter.nix
+++ b/nixos/modules/services/monitoring/prometheus/unifi-exporter.nix
@@ -83,6 +83,7 @@ in {
       description = "Prometheus exporter for UniFi Controller metrics";
       unitConfig.Documentation = "https://github.com/mdlayher/unifi_exporter";
       wantedBy = [ "multi-user.target" ];
+      after = optional config.services.unifi.enable "unifi.service";
       serviceConfig = {
         User = "nobody";
         Restart = "always";