diff options
author | Martin Fischer <martin@push-f.com> | 2025-08-30 19:27:25 +0200 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2025-08-30 20:03:15 +0200 |
commit | 80a98992584487a389900ea9e78963c01ea3d812 (patch) | |
tree | e5b254c6d7956e2d181375847904766b2a3af586 /nixos/hosts/tente/default.nix | |
parent | 0c1ab2a61849a92f8df4170b934a3cdc68ec98da (diff) |
refactor: make Prometheus & Loki config reusable
Diffstat (limited to 'nixos/hosts/tente/default.nix')
-rw-r--r-- | nixos/hosts/tente/default.nix | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/nixos/hosts/tente/default.nix b/nixos/hosts/tente/default.nix index e63b9bc..b9ac389 100644 --- a/nixos/hosts/tente/default.nix +++ b/nixos/hosts/tente/default.nix @@ -18,11 +18,13 @@ rec { <top/profiles/server> <top/shared/postgresql.nix> <top/shared/tailscale.nix> + <top/shared/monitoring.nix> ./web-personal.nix ./git.nix ./headscale.nix ./matrix.nix - ./monitoring.nix + ./exporters.nix + ./grafana.nix "${sources.my-lex-surf}/service.nix" "${sources.my-osm-proposals}/service.nix" "${sources.my-geopos-link}/service.nix" @@ -115,17 +117,16 @@ rec { }; }; - monitoring.grafanaUiPort = 3000; + grafana.port = 3000; + grafana.matrixForwarderPort = 3002; + grafana.matrixServerUrl = "http://localhost:${toString matrix.port}"; monitoring.alloyUiPort = 3001; - monitoring.grafanaMatrixForwarderPort = 3002; monitoring.lokiPort = 3030; monitoring.prometheusNodeExporterPort = 9002; - monitoring.prometheusSqlExporterPort = 9003; + exporters.sqlExporterPort = 9003; headscale.port = 8080; matrix.port = 8008; - monitoring.matrixServerUrl = "http://localhost:${toString matrix.port}"; - # Use the GRUB 2 boot loader. boot.loader.grub.enable = true; # boot.loader.grub.efiSupport = true; |