A question about how to show the average rate per second

What version of the stack are you using? The "Average Bucket" aggregation was added in 5.4 that will let you do just that: https://github.com/elastic/kibana/pull/10070