diff options
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)" |