From df9d5fb62f10448916402c09345ec013ac2a7600 Mon Sep 17 00:00:00 2001 From: mwiegand Date: Thu, 4 Nov 2021 22:39:10 +0100 Subject: [PATCH] openhab io problem --- bundles/telegraf/metadata.py | 2 +- nodes/home.openhab3.py | 11 +++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/bundles/telegraf/metadata.py b/bundles/telegraf/metadata.py index 12e56e8..b65e456 100644 --- a/bundles/telegraf/metadata.py +++ b/bundles/telegraf/metadata.py @@ -12,7 +12,7 @@ defaults = { 'agent': { 'hostname': node.name, 'collection_jitter': '0s', - 'flush_interval': '10s', + 'flush_interval': '15s', 'flush_jitter': '0s', 'interval': '15s', 'metric_batch_size': 1000, diff --git a/nodes/home.openhab3.py b/nodes/home.openhab3.py index b7bac80..10f83ae 100644 --- a/nodes/home.openhab3.py +++ b/nodes/home.openhab3.py @@ -3,7 +3,7 @@ 'groups': [ 'raspberry-pi', 'debian-11', - 'monitored', +# 'monitored', 'webserver', ], 'bundles': [ @@ -14,7 +14,14 @@ ], 'metadata': { 'FIXME_dont_touch_sshd': True, - + 'telegraf': { + 'config': { + 'agent': { + 'flush_interval': '30s', + 'interval': '30s', + }, + }, + }, 'id': '0afcde75-95c8-4fbd-b4c2-8a0fcc92884a', 'network': { 'internal': {