Best practice for server receiving MetricKit data

I'd like to set up a server to receive the MetricKit metrics and diagnostics. What would be the best practice to do this? What database should be used to efficiently query the data and visualize them?

NSHipster uses Postgres in their article about MetricKit, but isn't the data actually more similar to time series? Hence, does a time series database such as InfluxDB would make sense as well?

Replies

Some of the data maps reasonably well to time series, but the core of most of the metric kit data are as aggregates, which will be difficult to decompose back into it's original order and values. While the aggregate formats are well defined, I don't (yet) have a good sense of what all is in them, but NSHipster's code (nshipster.com/metrickit/) does a good job of highlighting how to tackle this sort of thing.

I'm leaning towards setting up a quick server so that I can capture CI/CD and long running integration test results, but haven't started anything towards that end as yet.
Thank you