added protection around the thunk for periodic execution
added fn all-metrics-clj to get all gathered metrics as clj map