diff options
author | Christian Pointner <equinox@spreadspace.org> | 2021-09-19 20:20:41 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2021-09-19 20:20:41 +0200 |
commit | 72ce00fc5b382eef8ce7b5596230bdef369e4cfd (patch) | |
tree | e8d4000874bd9e76dd273724bd8990a8cdde9a07 /inventory | |
parent | improved sensors initialization (diff) |
add sensors to lua prometheus exporter
Diffstat (limited to 'inventory')
-rw-r--r-- | inventory/group_vars/chaos-at-home-sensors/vars.yml | 5 | ||||
-rw-r--r-- | inventory/host_vars/ch-sensors1.yml | 12 |
2 files changed, 8 insertions, 9 deletions
diff --git a/inventory/group_vars/chaos-at-home-sensors/vars.yml b/inventory/group_vars/chaos-at-home-sensors/vars.yml index 7f4a93eb..169373a8 100644 --- a/inventory/group_vars/chaos-at-home-sensors/vars.yml +++ b/inventory/group_vars/chaos-at-home-sensors/vars.yml @@ -80,9 +80,8 @@ openwrt_mixin: /usr/lib/lua/sensors.lua: file: "{{ global_files_dir }}/common/openwrt/sensors.module_lua" - /usr/libexec/sensors-init.lua: - file: "{{ global_files_dir }}/common/openwrt/sensors-init.lua" - mode: "0755" + /usr/lib/lua/prometheus-collectors/sensors.lua: + file: "{{ global_files_dir }}/common/openwrt/sensors_promethues-node-exporter.lua" openwrt_uci: diff --git a/inventory/host_vars/ch-sensors1.yml b/inventory/host_vars/ch-sensors1.yml index 7efd03e4..d602fff7 100644 --- a/inventory/host_vars/ch-sensors1.yml +++ b/inventory/host_vars/ch-sensors1.yml @@ -6,27 +6,27 @@ sensornode_sensors: - number: 0 devices: - address: 0x70 - driver: pca9548 + type: pca9548 channels: - number: 0 devices: - name: foo address: 0x76 - driver: bme280 + type: bme280 - number: 1 devices: - name: bar address: 0x77 - driver: bmp280 + type: bmp280 - number: 2 devices: - name: baz address: 0x5c - driver: am2315 + type: am2315 - number: 7 devices: - address: 0x18 - driver: ds2482 - 1wire: + type: ds2482 + w1: - name: hugo address: 28-012113511280 |