diff --git a/example.json b/collector.json similarity index 100% rename from example.json rename to collector.json diff --git a/collector/__init__.py b/collector/__init__.py index c08abb5..f27d954 100644 --- a/collector/__init__.py +++ b/collector/__init__.py @@ -68,9 +68,8 @@ if "storage" in data_points: name = item["name"] path = item["path"] exclude = item.get("exclude", None) - else: - storage_sender = functools.partial(sender, f"{HOSTNAME}.storage.{name}") - thread(collect_storage, storage_sender, path, exclude = exclude) + storage_sender = functools.partial(sender, f"{HOSTNAME}.storage.{name}") + thread(collect_storage, storage_sender, path, exclude = exclude) # Check heartbeat if "heartbeat" in data_points: