nix-dotfiles/hosts/tsuki/services/grafana/prometheus-exporters/systemd.nix
h7x4 45497aea2b
tsuki: set up proper grafana infrastructure
- Set up a bunch of exporters
- Download matching dashboard declarations
- Remove influxdb
2023-01-20 19:55:52 +01:00

22 lines
418 B
Nix

{ ... }:
{
services.prometheus = {
scrapeConfigs = [{
job_name = "systemd";
scrape_interval = "15s";
static_configs = [{
targets = [ "localhost:10395" ];
}];
}];
exporters.systemd = {
enable = true;
port = 10395;
extraFlags = [
"--systemd.collector.enable-restart-count"
"--systemd.collector.enable-ip-accounting"
];
};
};
}