node_exporter on all three hosts (port 9100, ZT-only). Prometheus server scrapes via the clan ZT IPv6s. Alertmanager routes alerts to @HarakatBot (chat 66070351); critical repeats every 1h, others 4h. Starter rule: HostDown when up==0 for 5m. Grafana on :3000 over ZT, provisioned with the local Prometheus as default datasource. Manual secrets on sunken-ship: /etc/alertmanager/telegram-token and /etc/grafana/secret-key. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
10 lines
513 B
Nix
10 lines
513 B
Nix
# Expose reusable NixOS modules via `flake.nixosModules`.
|
|
#
|
|
# Consume from a host's flake-module via:
|
|
# modules = [ config.flake.nixosModules.dotfiles-rebuild ];
|
|
{ ... }: {
|
|
flake.nixosModules.dotfiles-rebuild = ../modules/dotfiles-rebuild.nix;
|
|
flake.nixosModules.server-debug-tools = ../modules/server-debug-tools.nix;
|
|
flake.nixosModules.monitoring-node-exporter = ../modules/monitoring-node-exporter.nix;
|
|
flake.nixosModules.monitoring-prometheus-server = ../modules/monitoring-prometheus-server.nix;
|
|
}
|