This page walks you through configuring Cost Allocation in your Dynatrace environment. For an overview of what Cost Allocation is and which capabilities support it, see Allocate. Once you've configured tags, see Analyze Cost Allocation data to read and export the data.
Cost allocation maps Dynatrace consumption to cost centers, products, or other organizational dimensions you choose. Tags applied at the OneAgent, Kubernetes, or telemetry-ingest layer flow through Grail as dt.cost.costcenter and dt.cost.product attributes that you analyze in dashboards, notebooks, or DQL, or export for chargeback. Setup involves choosing an allocation model, registering allowed values, and applying tags to your data sources.
To view or edit Cost Allocation information, your Dynatrace account needs at least one of the View account and View and manage account and billing information permissions as indicated in the table below.
| What you want to do | View account | View and manage account and billing information |
|---|---|---|
View Cost Allocation Allow List | ||
Edit Cost Allocation Allow List | ||
View usage/costs extract in Account Management |
More information about these permissions is available at Role-based permissions.
Additionally, the default policy "Read System Events" needs to be assigned to the relevant user group. The actual policy statement is provided in the code block below.
//Grail read dataALLOW storage:buckets:read WHERE storage:table-name = "dt.system.events";ALLOW storage:system:read;
If you will be using lookup tables to access Grail data, you will additionally need the permissions described in Lookup data in Grail.
This section describes how to set up Cost Allocation in your Dynatrace environment.
For tips on how to allocate shared costs, where a single host is used by multiple cost centers or products, see Handling shared costs.
Decide which organizational dimensions you want to track before applying any tags. Changing the model later is possible but requires re-tagging and doesn't apply retroactively.
| Model | Best for | Tag strategy |
|---|---|---|
By team or department | Showback, organizational accountability | Use |
By application | Product-level P&L, service costing | Use |
By both | Full flexibility and chargeback granularity | Use both tags |
Start simple. A single dt.cost.costcenter model covering your main teams is enough to deliver value. You can add dt.cost.product later.
To configure Cost Allocation you need to explicitly define the cost centers and products to which costs are allocated. Up to 250 cost centers and 250 products can be defined.
The definitions are managed in two separate allow lists: the Cost center allow list and the Product allow list. You can configure these either via Account Management or via the Dynatrace API, as described below.
Changes to the allow lists are not applied retroactively. If you remove a cost center or product from its allow list, historical reports will still show the usage and costs associated with the value before it was removed.
To find the two allow lists, go to Account Management > Subscription > Cost management. The allow lists are visible in the Cost center allow list and Product allow list sections.
To add a new cost center or product, select Cost center and follow the steps.

Both the cost center and product allow lists can be configured via the Account Management API as described in Dynatrace Platform Subscription API - manage cost allocation.
To set up Cost Allocation in a host-based deployment, configure OneAgent according to the steps in Set up Cost Allocation for OneAgent deployments.
Cost Allocation is configured at the host level. One host can be allocated to a maximum of one cost center and one product.
To set up Cost Allocation in a Kubernetes-based deployment, configure Kubernetes according to the steps in Set up Cost Allocation for Kubernetes deployments.
Cost Allocation is supported for different Kubernetes deployment models.
With Dynatrace, you can enrich telemetry data with Cost Allocation attributes (dt.cost.costcenter, dt.cost.product) as metadata.
Telemetry enrichment with Cost Allocation attributes is possible for all supported ingest methods, whether logs, traces, metrics, or events.
For ingested logs, Cost Allocation is also available for retained data (Log - Retain and Log - Retain with Included Queries). Both retain models use the settings that you already set up for ingest, so you don't need to do any additional configuration.
You can use these attributes to allocate usage to your user-defined products and cost centers.
Dashboards,
Notebooks, Account Management, and the Dynatrace API.For more information on how to enrich telemetry data according to your use case, see Ingest data.
No matter which method you use to ingest data, here's how to get going with Cost Allocation telemetry enhancement:
Get an inventory of your ingest channels. List all the ways your organization sends logs and traces into Dynatrace. This could be via OneAgent, the log ingest API, cloud forwarders, log shippers, OpenTelemetry, or any one of the supported ingest methods.
Review the documentation for your ingest method. Check the official Dynatrace documentation to find method-specific configuration and enrichment options.
Map metadata opportunities: Identify your specific cost centers and products and then explicitly define them in Account Management. For more information, see Identify allowed cost centers and products.
Don’t worry about perfection on day one. Start tagging now, even if it's just for one ingest channel. You can refine and expand to other ingest channels and telemetry types as your FinOps maturity grows.
Our available dashboard Cost Allocation pre-made dashboard can help you identify other ingest channels that you could consider enhancing with Cost Allocation data.
For each ingest channel:
Test your setup:
Send sample data and verify that Cost Allocation tags are present in Grail.
Use the pre-made dashboard to confirm that these tags are visible.
Usage tracking for logs and traces is written every 15 minutes. So, it might take up to 15 minutes until you will see any results.
Document your approach: Record which channels and tagging methods you use. This will help with future audits and troubleshooting.
This section describes how to configure Cost Allocation for queries, workflows, and functions. The relevant rate card categories are
Cost Allocation for queries, workflows, and functions is currently only supported at the environment level. Because of this, related data isn't included in exported data.
Consumption related to each of these categories is triggered by a specific Dynatrace user.
Therefore, to allocate costs related to these categories, you'll map the user to the relevant Cost Allocation attributes (whether dt.cost.costcenter or dt.cost.product).
To do this, follow the steps below.
Make sure that you have the following permissions:
The Cost Allocation dashboard and notebook are available as JSON files, which you can download from the Dynatrace GitHub repository.
Then upload/import the file to your Dynatrace environment, see Upload a dashboard and Import a notebook.
In the notebook that you imported, set up the mapping between users and attributes.
Create a list of users whose account activity you want to map to a given cost center or product.
The Quickstart: Retrieve a list of active Dynatrace users card provides a list of all users who are active in the relevant environment.
Each user is identified with an email and a unique user ID.
Create a list of all cost centers and products that costs should be allocated to.
The Fetch already used cost centers and Fetch already used products cards provide a list of all tags that are configured in your environment.
For each user, create a JSON object that defines the user.email, user.id, dt.cost.costcenter, and dt.cost.product.
Make sure that this object matches the JSON syntax shown in the code block below.
{"user.email": "abc@de.fg","user.id": "00000000-0000-0000-0000-000000000000","dt.cost.costcenter": "a","dt.cost.product": "1"}
Once you've created JSON objects for each user, paste these into the Store user mapping within lookup table card. Note that you may need to select Show input to enter the JSON contents.
Once you've entered all relevant JSON objects, select Run to upload the lookup table to your environment.
In the notebook you imported, set your prices for all the relevant rate card capabilities.
In the Store rate card within lookup table - ADJUST PRICES card, enter your rate-card prices for all the relevant capabilities. An example for the Automation Workflow capability is shown below.
{"key": "AUTOMATIONS","name": "Automation Workflow","price": "0.13","currencyCode": "USD"}
Note that you may need to select Show input to enter the JSON.
Once you've updated the relevant prices, select Run to upload the lookup table to your environment.
Once you've configured the user mappings and the rate card prices, you can use the Cost Allocation with extended lookup tables dashboard to see costs related to queries, workflows, and functions.
To access the dashboard, go to
Dashboards and find the dashboard you uploaded.
If you see a The tabular file <file> doesn't exist. error message in your dashboard, the userdata or ratecard lookup tables are improperly configured.
Repeat the steps in Map users to Cost Allocation metadata or Update the prices according to your rate card as appropriate.
This section provides best practices for setting up Cost Allocation.
How you name your cost centers and products is up to you. We recommend:
Values can be provided as text or numerical strings.
If you have both, we recommend to use both the text-based name and the ID, separated by a comma (,) or slash (/).
This lets you separate the name and ID after a data export.
Examples:
| Host | Cost center | Product |
|---|---|---|
Host 1 |
|
|
Host 2 |
|
|
Host 3 |
|
|
If your host shares services, Cost Allocation doesn't support costs billed to separate cost centers or products. However, you can create a cost center or product for that host and then allocate its costs outside of Dynatrace.
dt.cost.product="Webpage_MobileApp" for a host that should be allocated to both the webpage product and the mobile app product.DPS licensing consumption and related costs are based on 15-minute increments. Reports are generated daily, so you won't be able to see usage accrued in the previous <24 hours.
Once tags are flowing, see Analyze Cost Allocation data to read your allocation data with the pre-made dashboard, run DQL queries, and export to finance tools.