From b4b2f566b1a6dd21be28d719c2a7e36b2f7a901a Mon Sep 17 00:00:00 2001 From: crebsy <121096251+crebsy@users.noreply.github.com> Date: Tue, 18 Jul 2023 16:38:11 +0200 Subject: [PATCH] fix: always return max 10 datapoints from grafana --- grafana.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/grafana.py b/grafana.py index 6c59d71..1aac43f 100644 --- a/grafana.py +++ b/grafana.py @@ -87,7 +87,8 @@ def _ds_query(query, ts): { "expr": query, "utcOffsetSec": 0, - "datasourceId": 1 + "datasourceId": 1, + "maxDataPoints": 10 } ], "from": str(from_millis), "to": str(to_millis)