test
This commit is contained in:
parent
3f1490483d
commit
91a2cd25ea
1 changed files with 23 additions and 0 deletions
23
services/telegraf.nix
Normal file
23
services/telegraf.nix
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
{ config, pkgs, hostname, ... }: {
|
||||||
|
# Telegraf Monitoring
|
||||||
|
|
||||||
|
sops.secrets.telegraf-pass = {
|
||||||
|
owner = "telegraf";
|
||||||
|
sopsFile = ../secrets/secrets.yaml;
|
||||||
|
restartUnits = [ "telegraf.service" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
# Install the package
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
lm-sensors
|
||||||
|
telegraf
|
||||||
|
];
|
||||||
|
|
||||||
|
# Configure the package:
|
||||||
|
services.telegraf = {
|
||||||
|
enable = true;
|
||||||
|
extraConfig = {
|
||||||
|
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue