From a7fc3d15500036e50727a2a6f6f62d6618514e28 Mon Sep 17 00:00:00 2001 From: crebsy <121096251+crebsy@users.noreply.github.com> Date: Tue, 18 Jul 2023 14:33:19 +0200 Subject: [PATCH] fix: increase lookbehind to 1 hour --- grafana.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grafana.py b/grafana.py index 13e3776..6c59d71 100644 --- a/grafana.py +++ b/grafana.py @@ -72,7 +72,7 @@ def _ds_query(query, ts): base_url = os.environ["BASE_URL"] to_millis = int(ts * 1e3) - from_millis = int(to_millis - 1800 * 1e3) + from_millis = int(to_millis - 3600 * 1e3) url = f'{base_url}/api/ds/query' headers = {