We cant find any concept of environment in new relic.
One option is to use the app_name: in the newrelic.yml
E.g.
myservice-dev
myservice-stage
myservice-prod
myotherservice-dev
myotherservice-stage
myotherservice-prod
is there a better way? Maybe with three completely different new relic accounts (one for prod, one for stage, one for dev)?
Does new relic have any way to differentiate environments?
Also, if we go with the app_name solution, we have to used envs to switch.
Is this:
-Dnewrelic.environment=<environment>
The only way? Or can it be done with system env vars?