influx: remove now-obsolete resolution feature

This commit is contained in:
mwiegand 2022-07-07 19:05:53 +02:00
parent 15f0317fbe
commit b8cbf4648a
4 changed files with 1 additions and 4 deletions

View file

@ -142,7 +142,6 @@ for dashboard_id, monitored_node in enumerate(monitored_nodes, start=1):
host=monitored_node.name,
negative=query_config.get('negative', False),
boolean_to_int=query_config.get('boolean_to_int', False),
resolution=query_config.get('resolution', 1),
minimum=query_config.get('minimum', None),
filters={
'host': monitored_node.name,

View file

@ -4,7 +4,7 @@ from(bucket: "${bucket}")
<% values = values if isinstance(values, list) else [values] %>\
|> filter(fn: (r) => ${' or '.join(f'r["{key}"] == "{value}"' for value in values)})
% endfor
|> aggregateWindow(every: duration(v: int(v: v.windowPeriod)*${resolution}), fn: mean, createEmpty: false) // aggregate early for best performance
|> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false) // aggregate early for best performance
% if minimum:
|> filter(fn: (r) => r._value > ${minimum})
% endif

View file

@ -10,7 +10,6 @@
],
},
'minimum': 1,
'resolution': 2,
},
},
'unit': 'percent',

View file

@ -10,7 +10,6 @@
],
},
'minimum': 10*(10**6),
'resolution': 2,
},
},
'unit': 'bytes',