diff --git a/grafoleancollector/collector.py b/grafoleancollector/collector.py index 9cb6d75..9e4d730 100644 --- a/grafoleancollector/collector.py +++ b/grafoleancollector/collector.py @@ -284,8 +284,9 @@ def fetch_job_configs(self, protocol): elif sensor["default_interval"] is not None: interval = sensor["default_interval"] else: - logging.warn("Interval not set, ignoring sensor {} on entity {}!".format(sensor_id, entity_id)) - continue + # some sensors might not be periodic, or their interval might not be specified in the same way as with periodic + # sensors - we allow bots to handle such cases by themselves: + interval = None del sensor["default_interval"] # cleanup - nobody should need this anymore sensors.append({