summaryrefslogtreecommitdiffstats
path: root/lass/2configs/monitoring/client.nix
diff options
context:
space:
mode:
Diffstat (limited to 'lass/2configs/monitoring/client.nix')
-rw-r--r--lass/2configs/monitoring/client.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/lass/2configs/monitoring/client.nix b/lass/2configs/monitoring/client.nix
new file mode 100644
index 000000000..eebf2f2e9
--- /dev/null
+++ b/lass/2configs/monitoring/client.nix
@@ -0,0 +1,32 @@
+{pkgs, config, ...}:
+with import <stockholm/lib>;
+{
+ lass.telegraf = {
+ enable = true;
+ outputs = ''
+ [outputs.influxdb]
+ urls = ["http://prism:8086"]
+ database = "all_data"
+ user_agent = "telegraf"
+ '';
+ inputs = [
+ ''
+ [cpu]
+ percpu = false
+ totalcpu = true
+ drop = ["cpu_time"]
+ ''
+ ''
+ [[inputs.mem]]
+ ''
+ ''
+ [[inputs.ping]]
+ urls = ["8.8.8.8"]
+ ''
+ ];
+ };
+ systemd.services.telegraf.path = with pkgs; [
+ iputils
+ lm_sensors
+ ];
+}