bundles/mosquitto: add telegraf stats for tasmota devices
Some checks failed
bundlewrap/pipeline/head There was a failure building this commit

This commit is contained in:
Franzi 2021-05-15 08:52:37 +02:00
parent eb6ae208cb
commit 32826ed131
Signed by: kunsi
GPG key ID: 12E3D2136B818350
6 changed files with 1256 additions and 1 deletions

View file

@ -55,7 +55,7 @@ telegraf_config = {
},
}
# Bundlewrap can't merge lists. To work around this, telegraf/input_plugins/exec
# Bundlewrap can't merge lists. To work around this, telegraf/input_plugins/exec(d)
# is a dict, of which we only use the value of it. This also allows us
# to overwrite values set by metadata defaults/reactors in node and group
# metadata, if needed.
@ -65,6 +65,12 @@ for config in node.metadata.get('telegraf/input_plugins/exec', {}).values():
telegraf_config['inputs']['exec'].append(config)
for config in node.metadata.get('telegraf/input_plugins/execd', {}).values():
if 'execd' not in telegraf_config['inputs']:
telegraf_config['inputs']['execd'] = []
telegraf_config['inputs']['execd'].append(config)
files = {
'/etc/telegraf/telegraf.conf': {
'content_type': 'mako',