From f1b6ec41dfd3e5240764b3c24634afe624e39ba7 Mon Sep 17 00:00:00 2001 From: diamondburned Date: Fri, 6 Oct 2023 07:42:34 -0700 Subject: [PATCH] Add more metrics to Telegraf --- servers/cirno/configuration.nix | 5 +++++ servers/cs306/services.nix | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/servers/cirno/configuration.nix b/servers/cirno/configuration.nix index bd872f4..80a95a9 100644 --- a/servers/cirno/configuration.nix +++ b/servers/cirno/configuration.nix @@ -119,11 +119,16 @@ in swap = {}; system = {}; diskio = {}; + processes = {}; prometheus = { urls = [ "http://localhost:2019/metrics" # Caddy ]; }; + systemd_units = {}; + internet_speed = { + interval = "2h"; + }; }; outputs = { influxdb = { diff --git a/servers/cs306/services.nix b/servers/cs306/services.nix index dffa591..7ae32e9 100644 --- a/servers/cs306/services.nix +++ b/servers/cs306/services.nix @@ -14,19 +14,26 @@ in enable = true; extraConfig = { inputs = { + # TODO: per-service procstat net = {}; mem = {}; cpu = { percpu = true; totalcpu = true; }; disk = {}; swap = {}; + temp = {}; system = {}; kernel = {}; # ctx switch go brr diskio = {}; + processes = {}; prometheus = { urls = [ "http://localhost:2019/metrics" # Caddy ]; }; + systemd_units = {}; + internet_speed = { + interval = "2h"; + }; }; outputs = { influxdb = {