Add configurable parameters for metric interval and event TTL