Events per second when using $__interval with Elasticsearch

I’m using Grafana 4.6.0 with Elasticsearch 5.x and I’m trying to migrate a dashboard to $__interval.

Is there a way to display the event count per second?

Right now I have to verify the interval and divide the graph value to the interval size. In this case $__interval is 5 seconds and I can figure out that I have ~ 12 events per second, but it’s not fun anymore when zooming in and out:

This is all I have available when defining the query:


I think that this issue can point you in the right direction.