Library for collecting, aggregating and visualizing event metrics as timeseries data