Add systemd-exporter
This commit is contained in:
parent
31e954ab52
commit
20851243db
2 changed files with 12 additions and 0 deletions
|
@ -62,6 +62,7 @@ in
|
||||||
apolloConfig = name: imports:
|
apolloConfig = name: imports:
|
||||||
makeConfig "apollo" (
|
makeConfig "apollo" (
|
||||||
imports ++ [
|
imports ++ [
|
||||||
|
./roles/systemd-exporter.nix
|
||||||
./roles/battery.nix
|
./roles/battery.nix
|
||||||
./roles/beets.nix
|
./roles/beets.nix
|
||||||
./roles/daily-driver-programs.nix
|
./roles/daily-driver-programs.nix
|
||||||
|
|
11
home-manager/roles/systemd-exporter.nix
Normal file
11
home-manager/roles/systemd-exporter.nix
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
systemd.user = {
|
||||||
|
services.prometheus-systemd-exporter = {
|
||||||
|
Unit.Description = "Prometheus systemd exporter";
|
||||||
|
Service = {
|
||||||
|
ExecStart = "${pkgs.prometheus-systemd-exporter}/bin/prometheus-systemd-exporter --collector.user";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue