forked from Drift/pvv-nixos-config
metrics: install systemd exporter
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
# ./mysqld.nix
|
||||
./node.nix
|
||||
./postgres.nix
|
||||
./systemd.nix
|
||||
];
|
||||
|
||||
services.prometheus = {
|
||||
|
16
hosts/ildkule/services/monitoring/prometheus/systemd.nix
Normal file
16
hosts/ildkule/services/monitoring/prometheus/systemd.nix
Normal 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"
|
||||
];
|
||||
}
|
||||
];
|
||||
}];
|
||||
}
|
Reference in New Issue
Block a user