diff --git a/hosts/monitoring-3/prometheus.nix b/hosts/monitoring-3/prometheus.nix index 9e9fa52..4418389 100644 --- a/hosts/monitoring-3/prometheus.nix +++ b/hosts/monitoring-3/prometheus.nix @@ -358,32 +358,6 @@ in { relabelAddressToInstance ]; } - { - job_name = "zimmer-temp"; - scrape_interval = "20s"; - scheme = "https"; - metrics_path = "/data/zimmer-temp/"; - static_configs = [ - { - targets = [ - "iot-data.clerie.de" - ]; - } - ]; - } - { - job_name = "outdoor-temp"; - scrape_interval = "20s"; - scheme = "https"; - metrics_path = "/data/outdoor-temp/"; - static_configs = [ - { - targets = [ - "iot-data.clerie.de" - ]; - } - ]; - } { job_name = "xmpp-alerts"; scrape_interval = "20s"; diff --git a/hosts/web-2/configuration.nix b/hosts/web-2/configuration.nix index 8891ee3..7367202 100644 --- a/hosts/web-2/configuration.nix +++ b/hosts/web-2/configuration.nix @@ -11,7 +11,6 @@ ./drop.nix ./fieldpoc.nix ./gitea.nix - ./iot-data.nix ./ip.nix ./legal.nix ./meow.nix diff --git a/hosts/web-2/iot-data.nix b/hosts/web-2/iot-data.nix deleted file mode 100644 index 64da990..0000000 --- a/hosts/web-2/iot-data.nix +++ /dev/null @@ -1,40 +0,0 @@ -{pkgs, ...}: - -{ - users.users.iot-data = { - description = "IOT Data Service"; - group = "iot-data"; - home = "/var/lib/iot-data/"; - useDefaultShell = true; - isSystemUser = true; - }; - users.groups.iot-data = {}; - - systemd.services.iot-data = { - wantedBy = [ "multi-user.target" ]; - serviceConfig = { - RuntimeDirectory = "iot-data"; - StateDirectory = "iot-data"; - User = "iot-data"; - Group = "iot-data"; - }; - environment = { - IOT_DATA_CONFIG = "/var/src/iot-data-config.json"; - }; - script = "gunicorn -w 1 -b [::1]:8235 iot_data:app"; - path = with pkgs; [ (python3.withPackages (ps: [ ps.gunicorn iot-data ])) ]; - }; - - services.nginx.virtualHosts = { - "iot-data.clerie.de" = { - enableACME = true; - addSSL = true; - locations."/" = { - proxyPass = "http://[::1]:8235"; - }; - extraConfig = '' - access_log off; - ''; - }; - }; -}