From 6ad4c172d23b88a0e0bace8488e4f53f6ee4ce6e Mon Sep 17 00:00:00 2001
From: Trygve Laugstøl <trygvis@inamo.no>
Date: Tue, 1 Sep 2020 20:10:10 +0200
Subject: ops

---
 ansible/host_vars/malabaricus/ops-agent.yml | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)
 create mode 100644 ansible/host_vars/malabaricus/ops-agent.yml

(limited to 'ansible/host_vars/malabaricus')

diff --git a/ansible/host_vars/malabaricus/ops-agent.yml b/ansible/host_vars/malabaricus/ops-agent.yml
new file mode 100644
index 0000000..72c221b
--- /dev/null
+++ b/ansible/host_vars/malabaricus/ops-agent.yml
@@ -0,0 +1,29 @@
+telegraf_extra_config: |
+  [[inputs.multifile]]
+    base_dir = "/sys/class/thermal"
+
+    ## If true discard all data when a single file can't be read.
+    ## Else, Telegraf omits the field generated from this file.
+    # fail_early = true
+
+    ## Files to parse each interval.
+    [[inputs.multifile.file]]
+      file = "thermal_zone0/temp"
+      dest = "zone0"
+      conversion = "float(3)"
+    [[inputs.multifile.file]]
+      file = "thermal_zone1/temp"
+      dest = "zone1"
+      conversion = "float(3)"
+    [[inputs.multifile.file]]
+      file = "thermal_zone2/temp"
+      dest = "zone2"
+      conversion = "float(3)"
+    [[inputs.multifile.file]]
+      file = "thermal_zone3/temp"
+      dest = "zone3"
+      conversion = "float(3)"
+    [[inputs.multifile.file]]
+      file = "thermal_zone4/temp"
+      dest = "zone4"
+      conversion = "float(3)"
-- 
cgit v1.2.3