diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2020-09-01 20:10:10 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2020-09-01 20:10:10 +0200 |
commit | 6ad4c172d23b88a0e0bace8488e4f53f6ee4ce6e (patch) | |
tree | 3ed44554680e965adf6e6453abac32746600d273 /ansible/host_vars/malabaricus | |
parent | e581bb7e3dd37572b739083133ffaf8d0962cb15 (diff) | |
download | infra-6ad4c172d23b88a0e0bace8488e4f53f6ee4ce6e.tar.gz infra-6ad4c172d23b88a0e0bace8488e4f53f6ee4ce6e.tar.bz2 infra-6ad4c172d23b88a0e0bace8488e4f53f6ee4ce6e.tar.xz infra-6ad4c172d23b88a0e0bace8488e4f53f6ee4ce6e.zip |
ops
Diffstat (limited to 'ansible/host_vars/malabaricus')
-rw-r--r-- | ansible/host_vars/malabaricus/ops-agent.yml | 29 |
1 files changed, 29 insertions, 0 deletions
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)" |