summaryrefslogtreecommitdiffstats
path: root/lass/2configs/monitoring/client.nix
diff options
context:
space:
mode:
authorlassulus <lass@lassul.us>2017-01-30 22:56:43 +0100
committerlassulus <lass@lassul.us>2017-01-30 22:56:43 +0100
commit1d2c058d78f9cb5d4a51dd2ffb1bfd4b09623055 (patch)
tree053ba89252fe11e23e49787d463e11fcae17f11e /lass/2configs/monitoring/client.nix
parentf0a345d79b0ab80d2e38baddba7f19e40241c79a (diff)
l 2 monitoring: introduce {client,server}.nix
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
+ ];
+}