use ec2metadata and NEW_RELIC_ENVIRONMENT