diff options
author | Christian Pointner <equinox@spreadspace.org> | 2022-01-04 14:37:50 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2022-01-04 14:37:50 +0100 |
commit | 3bce73818e00e58f01d8394194c6850ce2363da6 (patch) | |
tree | c9b5162219b87beb02bc2f864fd5dde9c3989db4 /roles/monitoring/prometheus/exporter/node/defaults | |
parent | prometheus/node/sensors: fix duplicate type string in promehteus output (diff) |
sensor: i2c bus detection using regex for name
Diffstat (limited to 'roles/monitoring/prometheus/exporter/node/defaults')
-rw-r--r-- | roles/monitoring/prometheus/exporter/node/defaults/main.yml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/roles/monitoring/prometheus/exporter/node/defaults/main.yml b/roles/monitoring/prometheus/exporter/node/defaults/main.yml index 9e8bcf8b..38bcc080 100644 --- a/roles/monitoring/prometheus/exporter/node/defaults/main.yml +++ b/roles/monitoring/prometheus/exporter/node/defaults/main.yml @@ -42,6 +42,10 @@ prometheus_exporter_node_textfile_collector_scripts: # - name: bar # address: 0x77 # type: bmp280 +# - name_regex: "^i2c%-tiny%-usb at bus 001 device %d+$" ## this uses lua pattern maching +# devices: +# - address: 0x77 +# type: bmp280 # w1: # - name: temp1 # address: 28-987654321098 |