Skip to content

Commit

Permalink
modules/darwin: switch to srvos telegraf
Browse files Browse the repository at this point in the history
  • Loading branch information
zowoq committed Oct 7, 2024
1 parent 64675a0 commit 83834e3
Showing 1 changed file with 5 additions and 39 deletions.
44 changes: 5 additions & 39 deletions modules/darwin/common/telegraf.nix
Original file line number Diff line number Diff line change
@@ -1,41 +1,7 @@
{ pkgs, ... }:
{ inputs, ... }:
{
imports = [ ../../shared/telegraf.nix ];

services.telegraf = {
enable = true;
extraConfig = {
agent.interval = "60s";
inputs = {
smart.path_smartctl = "${pkgs.smartmontools}/bin/smartctl";
system = { };
mem = { };
swap = { };
disk.tagdrop = {
fstype = [
"tmpfs"
"ramfs"
"devtmpfs"
"devfs"
"iso9660"
"overlay"
"aufs"
"squashfs"
];
device = [
"rpc_pipefs"
"lxcfs"
"nsfs"
"borgfs"
];
};
diskio = { };
internal = { };
};
outputs.prometheus_client = {
listen = ":9273";
metric_version = 2;
};
};
};
imports = [
inputs.srvos.darwinModules.mixins-telegraf
../../shared/telegraf.nix
];
}

0 comments on commit 83834e3

Please sign in to comment.