summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2021-09-05 02:51:02 +0200
committerChristian Pointner <equinox@spreadspace.org>2021-09-05 02:51:02 +0200
commita9de7fd9f9d97cefff30e72b2e384ef6b267f093 (patch)
tree62b9e593380629ac0fb05ef288a3a637dabbd2e4
parentmove sensor nodes to new openwrt release (diff)
add sensor nodes to prometheus zone
-rw-r--r--inventory/group_vars/chaos-at-home-sensors/vars.yml5
-rw-r--r--inventory/hosts.ini1
2 files changed, 6 insertions, 0 deletions
diff --git a/inventory/group_vars/chaos-at-home-sensors/vars.yml b/inventory/group_vars/chaos-at-home-sensors/vars.yml
index fc0972e8..dd39a2ec 100644
--- a/inventory/group_vars/chaos-at-home-sensors/vars.yml
+++ b/inventory/group_vars/chaos-at-home-sensors/vars.yml
@@ -139,3 +139,8 @@ openwrt_uci:
ssid: '{{ network_zones.iot.wifi.ssid }}'
encryption: 'psk2'
key: '{{ network_zones.iot.wifi.key }}'
+
+
+prometheus_scrape_endpoint: "{{ network_zones.iot.prefix | ipaddr(network_zones.iot.offsets[inventory_hostname]) | ipaddr('address') }}:9100"
+prometheus_exporters_default:
+ - openwrt
diff --git a/inventory/hosts.ini b/inventory/hosts.ini
index f583db48..06d360a0 100644
--- a/inventory/hosts.ini
+++ b/inventory/hosts.ini
@@ -412,6 +412,7 @@ ch-testvm-prometheus
[promzone-chaos-at-home:children]
chaos-at-home-ap
chaos-at-home-ups
+chaos-at-home-sensors
promzone-chaos-at-home-server
[promzone-elevate-festival-server]