realtime metrics

The current code is hard coded to support 1 minute resolution. It would be nice if we could have realtime metrics.

**TODO:**

- [x] uncomment partition locking