From ebb69064849b13cb0170b773c5ddfd5739d7efc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Fri, 10 Mar 2023 09:49:34 +0100 Subject: nixos/monitoring: monitoring runs on errol for now --- nixos/modules/monitoring.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'nixos') diff --git a/nixos/modules/monitoring.nix b/nixos/modules/monitoring.nix index 44d3cb5..2660461 100644 --- a/nixos/modules/monitoring.nix +++ b/nixos/modules/monitoring.nix @@ -7,7 +7,7 @@ with lib; let cnf = config.cynerd.monitoring; inherit (config.networking) hostName; - isHost = cnf.host == hostName; + isHost = cnf.host == hostName || hostName == "errol"; in { options.cynerd.monitoring = { enable = mkOption { @@ -29,7 +29,7 @@ in { }; config = mkMerge [ - {cynerd.monitoring.host = "errol";} + {cynerd.monitoring.host = "lipwig";} (mkIf cnf.enable { # Telegraf configuration @@ -40,6 +40,7 @@ in { agent = {}; outputs.influxdb_v2 = [ { + # TODO change to lipwig!! urls = ["http://errol:8086"]; token = "$INFLUX_TOKEN"; organization = "personal"; -- cgit v1.2.3