bundles/mosquitto: add telegraf stats for tasmota devices
Some checks failed
bundlewrap/pipeline/head There was a failure building this commit
Some checks failed
bundlewrap/pipeline/head There was a failure building this commit
This commit is contained in:
parent
eb6ae208cb
commit
32826ed131
6 changed files with 1256 additions and 1 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue