Count API request per Consumer (or Service)

We would like to count the amount of request per Consumer (it’s the same for the Services too).
This job is done by the Statsd plugin. Using a statsd-exporter (here the docker container) it’s possible to show all the statistics in Prometheus about Kong the number of requests simply going to the /metrics page.
Problems come up if the server is restarted, all the stats are deleted.
So we want to work in order to store everything. Bu before spent some days of work, we’re wondering if there is a better way in order to have persistent statistics.

Any suggestions will be appreciated.

If you are storing these metrics in Prometheus, restart of statsd exporter should not be a problem.
Prometheus will account for counter resets correctly.