Downsampling in Grafana

Hello!
I faced with huge data amount (points in graphic) hence decided use downsampling, but did not find anything about it in Grafana docs.
To solve this problem, I need to find a way to reduce the number of data points I’m getting from my data source (I use Druid). Unfortunately, doing this in a manner that doesn’t drastically deform our graph is actually a very tricky problem.
May you help me with this issue? Grafana does have helpful tool describe above?

Forgot to said, I use Druid as data source and Druid sql query.