add prometheus module and edit sops.nix

This commit is contained in:
2026-09-30 19:15:00 +02:00
parent dc8c89e358
commit 12eacb13ad
9 changed files with 81 additions and 58 deletions
+17
View File
@@ -14,4 +14,21 @@
analytics.reporting_enabled = false;
};
};
services.prometheus = {
enable = true;
globalConfig.scrape_interval = "10s";
scrapeConfigs = [
{
job_name = "navidrome";
scheme = "http";
metrics_path = "/metrics";
static_configs = [
{
targets = [ "localhost:4533" ];
}
];
}
];
};
}