PostgreSQL has recently added support for JSON storage and indexing.
@plaes asked if something like this could be used for the backend.
Investigate what's possible with this solution and what it could take, roughly, to use it.
See https://fosdem.org/2017/schedule/event/postgresql_infrastructure_monitoring/
and http://www.slideshare.net/StevenSimpson30/infrastructure-monitoring-with-postgres