only an environment manager can access the metrics api
added a machiner test and vars for cleanup and sender periods