diff options
Diffstat (limited to 'modules/nixos/monitoring/default.nix')
-rw-r--r-- | modules/nixos/monitoring/default.nix | 47 |
1 files changed, 47 insertions, 0 deletions
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 = [ @@ -68,6 +74,10 @@ in { options.path = ./dashboards/node.json; } { + name = "ntfy"; + options.path = ./dashboards/ntfy.json; + } + { name = "endlessh"; options.path = ./dashboards/endlessh.json; } @@ -120,6 +130,43 @@ 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 = [ { |