Add handler for retrieving timeseries data.