Lightweight framework for collecting and aggregating event metrics as timeseries data