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 | |
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')
-rw-r--r-- | ansible/host_vars/birgitte/ops-agent.yml | 17 | ||||
-rw-r--r-- | ansible/host_vars/malabaricus/ops-agent.yml | 29 |
2 files changed, 46 insertions, 0 deletions
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)" |