For OneAgent deployments, Cost Allocation is configured on hosts via host tags.
This section describes how to configure a OneAgent for Cost Allocation. For background information about Cost Allocation, see Allocate your DPS costs.
OneAgent version 1.291+
When you install OneAgent on a new host, you can use tags to add this host to an existing host group.
In the Install OneAgent page, go to Optional parameters > Tags.
Select Add tag.
Enter the Key and Value as appropriate:
dt.cost.costcenter
or dt.cost.product
.Select Add.
Continue to install OneAgent.
Past tracked consumption cannot be changed or reassigned. If you modify host tags, all existing data about already-recorded costs (related to that host tag and that host) will be lost.
Before you reassign existing host tags, you might want to export the existing data via the Dynatrace Platform Subscription API - GET cost allocation.
Before changing the values for dt.cost.costcenter
or dt.cost.product
, add or remove the target values in the Cost Allocation allow lists.
This will ensure that no usage values are unassigned during the transition.
Note that updates to the allow list will take a couple of minutes to go into effect.
OneAgent version 1.291+
To modify existing tags, follow the steps in Add host tags. The new values will overwrite the existing values.
Removing host tags is irreversible. If you modify host tags, all existing data about already-recorded costs (related to that host tag and that host) will be lost.