From 2c2d16f3f85baf0fe2e0af77c828e0a079f83e55 Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Sun, 6 Apr 2025 22:10:27 +0200 Subject: [PATCH] treewide: remove nginx leftover --- modules/services/promtail/default.nix | 16 ---------------- pkgs/grafana-dashboards/default.nix | 7 ------- 2 files changed, 23 deletions(-) diff --git a/modules/services/promtail/default.nix b/modules/services/promtail/default.nix index 167735d..69fc993 100644 --- a/modules/services/promtail/default.nix +++ b/modules/services/promtail/default.nix @@ -49,26 +49,10 @@ in } ]; } - { - job_name = "nginx"; - static_configs = [ - { - targets = [ "localhost" ]; - labels = { - job = "nginx"; - __path__ = "/var/log/nginx/*.log"; - host = config.networking.hostName; - }; - } - ]; - } ]; }; }; - # otherwise access to the log is denied - users.users.promtail.extraGroups = [ "nginx" ]; - my.services.prometheus.rules = { promtail_request_errors = { condition = ''100 * sum(rate(promtail_request_duration_seconds_count{status_code=~"5..|failed"}[1m])) by (namespace, job, route, instance) / sum(rate(promtail_request_duration_seconds_count[1m])) by (namespace, job, route, instance) > 10''; diff --git a/pkgs/grafana-dashboards/default.nix b/pkgs/grafana-dashboards/default.nix index 700c077..ad8586f 100644 --- a/pkgs/grafana-dashboards/default.nix +++ b/pkgs/grafana-dashboards/default.nix @@ -50,13 +50,6 @@ lib.makeScope pkgs.newScope ( src = ./node-systemd.json; # sadly only imported dashboards work }); - nginx = buildGrafanaDashboard { - id = 12708; - pname = "nginx"; - version = "1"; - hash = "sha256-T1HqWbwt+i/We+Y2B7hcl3CijGxZF5QI38aPcXjk9y0="; - }; - nextcloud = (buildGrafanaDashboard { id = 9632;