Skip to content

Commit

Permalink
fix: always return max 10 datapoints from grafana
Browse files Browse the repository at this point in the history
  • Loading branch information
crebsy committed Jul 18, 2023
1 parent a7fc3d1 commit b4b2f56
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion grafana.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b4b2f56

Please sign in to comment.