From 4165c3728e5ae001b41f62c6f23f2b3a28b3e036 Mon Sep 17 00:00:00 2001 From: stuebinm Date: Sun, 17 Oct 2021 02:19:39 +0200 Subject: delete grafana / lmu scraper --- hosts/chaski/configuration.nix | 2 +- hosts/chaski/services/grafana.nix | 43 --------------------------------------- 2 files changed, 1 insertion(+), 44 deletions(-) delete mode 100644 hosts/chaski/services/grafana.nix (limited to 'hosts/chaski') diff --git a/hosts/chaski/configuration.nix b/hosts/chaski/configuration.nix index 672b5d3..38e9e0d 100644 --- a/hosts/chaski/configuration.nix +++ b/hosts/chaski/configuration.nix @@ -8,7 +8,7 @@ imports = [ # Include the results of the hardware scan. ./hardware-configuration.nix - ./services/grafana.nix + # ./services/grafana.nix # ./services/workadventure.nix #./services/exneuland.nix ./services/jitsi.nix diff --git a/hosts/chaski/services/grafana.nix b/hosts/chaski/services/grafana.nix deleted file mode 100644 index 7de2f69..0000000 --- a/hosts/chaski/services/grafana.nix +++ /dev/null @@ -1,43 +0,0 @@ -{ config, pkgs, ... }: - -{ - services.prometheus = { - enable = true; - port = 9001; - scrapeConfigs = [ { - job_name = "lmucast-docker"; - static_configs = [ { - targets = [ "cast.itunes.uni-muenchen.de:9101" ]; - } ]; - } ]; - }; - - services.grafana = { - enable = true; - port = 5000; - addr = "[::]"; - rootUrl = "https://scrape.stuebinm.eu/"; - auth.anonymous.enable = true; - - provision = { - enable = true; - datasources = [ { - name = "lmucast"; - type = "prometheus"; - url = "http://localhost:9001"; - } ]; - }; - }; - - services.nginx.enable = true; - services.nginx.virtualHosts."scrape.stuebinm.eu" = { - locations."/" = { - proxyPass = "http://localhost:5000"; - proxyWebsockets = true; - }; - enableACME = true; - forceSSL = true; - }; - - networking.firewall.allowedTCPPorts = [ 80 443 ]; -} -- cgit v1.2.3