From f4145939712b0046e5d57906d4b157b8a150614d Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Sat, 1 Apr 2023 04:39:59 +0300 Subject: 2023-04-01 --- modules/nixos/monitoring/default.nix | 47 ++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) (limited to 'modules/nixos/monitoring/default.nix') diff --git a/modules/nixos/monitoring/default.nix b/modules/nixos/monitoring/default.nix index 94fff67..6f74e9f 100644 --- a/modules/nixos/monitoring/default.nix +++ b/modules/nixos/monitoring/default.nix @@ -60,6 +60,12 @@ in { jsonData.client = "standalone"; }) ]; + datasources.settings.deleteDatasources = [ + { + name = "PostgreSQL"; + orgId = 1; + } + ]; # https://grafana.com/docs/grafana/latest/administration/provisioning/#dashboards dashboards.settings.providers = [ @@ -67,6 +73,10 @@ in { name = "node"; options.path = ./dashboards/node.json; } + { + name = "ntfy"; + options.path = ./dashboards/ntfy.json; + } { name = "endlessh"; options.path = ./dashboards/endlessh.json; @@ -119,6 +129,43 @@ in { in with my.configurations; with config.services.prometheus.exporters; [ + { + job_name = "promtail"; + static_configs = [ + { + targets = + mkTargets [ + manwe + varda + yavanna + ] + config.nixfiles.modules.promtail.port; + } + ]; + } + { + job_name = "ntfy"; + static_configs = [ + { + targets = + mkTargets + [ + manwe + ] + config.nixfiles.modules.ntfy.port; + } + ]; + } + { + job_name = "soju"; + static_configs = [ + { + targets = [ + "127.0.0.1:${toString config.nixfiles.modules.soju.prometheus.port}" + ]; + } + ]; + } { job_name = "endlessh-go"; static_configs = [ -- cgit 1.4.1