summaryrefslogtreecommitdiff
path: root/hosts/chaski/services
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/chaski/services')
-rw-r--r--hosts/chaski/services/grafana.nix43
1 files changed, 0 insertions, 43 deletions
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 ];
-}