[UPDATE] extracted metric logic from timeseries streams.