initial commit

This commit is contained in:
Jet 2026-02-16 21:29:21 -08:00
commit 47c42dc7a6
14 changed files with 490 additions and 0 deletions

35
modules/monitoring.nix Normal file
View file

@ -0,0 +1,35 @@
{ config, pkgs, ... }:
{
services.prometheus = {
enable = true;
port = 9090;
exporters = {
node = {
enable = true;
enabledCollectors = [ "systemd" ];
port = 9100;
};
# Stalwart and Conduit might have exporters too
};
scrapeConfigs = [
{
job_name = "node";
static_configs = [{
targets = [ "127.0.0.1:9100" ];
}];
}
];
};
services.grafana = {
enable = true;
settings = {
server = {
http_port = 3001;
http_addr = "127.0.0.1";
domain = "status.extremist.software";
};
};
};
}