From 6ad4c172d23b88a0e0bace8488e4f53f6ee4ce6e Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Tue, 1 Sep 2020 20:10:10 +0200 Subject: ops --- ansible/host_vars/birgitte/ops-agent.yml | 17 +++++++++++++++++ ansible/host_vars/malabaricus/ops-agent.yml | 29 +++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 ansible/host_vars/birgitte/ops-agent.yml create mode 100644 ansible/host_vars/malabaricus/ops-agent.yml (limited to 'ansible/host_vars') diff --git a/ansible/host_vars/birgitte/ops-agent.yml b/ansible/host_vars/birgitte/ops-agent.yml new file mode 100644 index 0000000..5c2c3cf --- /dev/null +++ b/ansible/host_vars/birgitte/ops-agent.yml @@ -0,0 +1,17 @@ +telegraf_extra_mount_points: + - /dev/disk + - /dev/sda + +telegraf_sensors_enable: yes +telegraf_smart_enable: yes +# ls -1 /dev/disk/by-id/|grep ^ata|grep -v -- -part +telegraf_smart_devices: + - ata-APPLE_SSD_SM128_DFKUA04844EC992 + - ata-Corsair_CSSD-F120GB2_10446506330009980010 + - ata-HGST_HUS728T8TALE6L4_VDJA4N6K + - ata-HGST_HUS728T8TALE6L4_VDJARDYK + - ata-INTEL_SSDSC2CT240A4_CVKI304304XQ240DGN + - ata-INTEL_SSDSC2CT240A4_CVKI319001LL240DGN + - ata-INTEL_SSDSC2CW240A3_CVCV24100044240CGN + - ata-ST4000DM005-2DP166_WDH12006 + - ata-ST4000DM005-2DP166_WDH1209R 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