metrics: install systemd exporter

This commit is contained in:
2024-09-02 21:40:32 +02:00
parent 3a0b8e270d
commit b4c602e31c
3 changed files with 40 additions and 1 deletions

View File

@@ -6,6 +6,7 @@
# ./mysqld.nix
./node.nix
./postgres.nix
./systemd.nix
];
services.prometheus = {

View File

@@ -0,0 +1,16 @@
{ config, ... }: let
cfg = config.services.prometheus;
in {
services.prometheus.scrapeConfigs = [{
job_name = "systemd";
static_configs = [
{
targets = [
"ildkule.pvv.ntnu.no:${toString cfg.exporters.node.port}"
"bicep.pvv.ntnu.no:9101"
"bekkalokk.pvv.ntnu.no:9101"
];
}
];
}];
}