grafana / timestream-datasource

Amazon Timestream in Grafana
https://grafana.com/grafana/plugins/grafana-timestream-datasource
Apache License 2.0
23 stars 19 forks source link

Slowness to retrieve data in dashboard ( POST calls fail repeatedly ) #305

Open Ardomotica opened 2 days ago

Ardomotica commented 2 days ago

What's happening

Discussed in : https://community.grafana.com/t/grafana-timestream-data-source/132439?u=xbox3535889

I am using Grafana to display data from AWS Timestream, it seems to be very slow to display the data, I have tried changing some datasource configuration but the situation remains the same, it is really very slow, do you have any ideas to improve performance ?

In this picture you can see the dashboard loading, it stays loading for several minutes.

Image

In this second pic you’ll find the datasource configuration

Image

I did some testing by trying to run the same query on grafana on the Timestream query editor and it takes about 2 sec :

Image

Reloading grafana after a few minutes, it started the slow loading again, and opening Chrome’s DevTool you can see how the query calls repeatedly fail until an answer comes after several minutes, as you can see :

Image

Anything else we need to know?: As you can see in the plugin configuration i've used "SDK Default" ad Authentication provider

Grafana version: Grafana v11.2.0 (c57667e448) Plugin version: 2.9.8 OS Grafana is installed on: EC2 Amazon Linux V2 / Linux/UNIX User OS & Browser: Linux/UNIX Others:

iwysiu commented 11 hours ago

Hi @Ardomotica ! We still need to take a look at this, but based on the linked community post, it sounds like you're having an issue with the SDK default taking a long time to get the token. Do you still have this issue if you try another authentication method?