Is the host group setting way to go when we wan't to divide data coming from production and staging side. The agents are currently under the same environment in Dynatrace managed but we have an issue with the service naming and merging.
Currently the agents don't have any host_group defined so the services are merged between production and staging servers. Not sure currently should we start to taggle this with host groups or try to use some metadata in tagging to split the data.
Host group may help for creating rules for management zones, and splitting process groups. Different hosts groups are one of criteria’s to splits process groups into multiple ones. Than you can create management zone for each env and than you can give permissions for users only to particular part of your monitored entities and data related to them.
That is the right way to split the production entities from the staging entities. When the same process group is running in two different host groups, Dynatrace will create one process group for each host group. Consequently, services are also grouped per host group. So you can configure services differently per host group.
In other words, your transactions and metrics will have their own services and process groups for production, and also for for staging.