I am not sure if it makes sense but Mimir could be another history backend, right? As far as I understand Grafana Mimir is a time series database like influxdb, it will even be metrics ingestion compatible with influxdb in the future.
I am not a programmer but it could be worth to think about it. A whole grafana stack could make things even easier.
What are your thoughts?