summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
authorstuebinm2021-06-23 23:14:01 +0200
committerstuebinm2021-06-23 23:14:01 +0200
commit3c2f588cd95593bdbf7743a3f58321ddbac17038 (patch)
treecf6a98bc9ef19cb87a512dd6b0e9dd70c94cd9e1 /hosts
parent017d861c92ba4c5e889568842f3b6258d6ed96dc (diff)
remove grafana
no longer needed
Diffstat (limited to 'hosts')
-rw-r--r--hosts/flora/configuration.nix1
-rw-r--r--hosts/flora/services/grafana.nix41
2 files changed, 0 insertions, 42 deletions
diff --git a/hosts/flora/configuration.nix b/hosts/flora/configuration.nix
index 6aac996..d45175e 100644
--- a/hosts/flora/configuration.nix
+++ b/hosts/flora/configuration.nix
@@ -9,7 +9,6 @@
./services/pleroma.nix
./services/cgit.nix
./services/surveys.nix
- ./services/grafana.nix
#./services/picarones.nix
];
diff --git a/hosts/flora/services/grafana.nix b/hosts/flora/services/grafana.nix
deleted file mode 100644
index 15fd254..0000000
--- a/hosts/flora/services/grafana.nix
+++ /dev/null
@@ -1,41 +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.virtualHosts."scrape.stuebinm.eu" = {
- locations."/" = {
- proxyPass = "http://localhost:5000";
- proxyWebsockets = true;
- };
- enableACME = true;
- forceSSL = true;
- };
-
- networking.firewall.allowedTCPPorts = [ 80 443 ];
-}