# Query Cost Allocation for Short-Lived Environments Using DQL

**URL:** <https://community.dynatrace.com/t/query-cost-allocation-for-short-lived-environments-using-dql/53791>\
**Category:** DQL\
**Tags:** dql, cost-allocation, licensing\
**Created:** [October 20, 2025, 3:44pm UTC](https://community.dynatrace.com/t/query-cost-allocation-for-short-lived-environments-using-dql/53791 "2025-10-20T15:44:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ftmazzone](https://avatars.discourse-cdn.com/v4/letter/f/aca169/32.png) [@ftmazzone](https://community.dynatrace.com/u/ftmazzone)\
**Post date:** [October 20, 2025, 3:44pm UTC](https://community.dynatrace.com/t/query-cost-allocation-for-short-lived-environments-using-dql/53791/1 "2025-10-20T15:44:47Z")

</div>

Hello,

For our short-lived environments and servers, we would like to use the cost allocation feature and provide to standard users an option to view the consumption per cost center. The cost center in our case is unique for each environment even if it short- lived.

Is there an option to allow using any `dt.cost.costcenter` value instead of using an allow list ?&nbsp;  
Or is there an option to view all the `dt.cost.costcenter` values not present in the allow list ?

---

<div class="post-metadata">

**Author:** ![izabelarokita](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/izabelarokita/32/41812_2.png) [@izabelarokita](https://community.dynatrace.com/u/izabelarokita)\
**Post date:** [December 17, 2025, 10:10am UTC](https://community.dynatrace.com/t/query-cost-allocation-for-short-lived-environments-using-dql/53791/2 "2025-12-17T10:10:56Z")

</div>

Hey&nbsp;[@ftmazzone](https://community.dynatrace.com/user/89392)&nbsp;,  
I just wanted to check in and see if you still need help with this. If so, I’d be happy to look into it for you!&nbsp;:blush:  
Please let me know what works best for you.

---

<div class="post-metadata">

**Author:** ![ftmazzone](https://avatars.discourse-cdn.com/v4/letter/f/aca169/32.png) [@ftmazzone](https://community.dynatrace.com/u/ftmazzone)\
**Post date:** [December 17, 2025, 10:15am UTC](https://community.dynatrace.com/t/query-cost-allocation-for-short-lived-environments-using-dql/53791/3 "2025-12-17T10:15:18Z")

</div>

Hello&nbsp;[@IzabelaRokita](https://community.dynatrace.com/user/67399)&nbsp;,

Thanks for your reply. Yes, this is definitely a topic that is still important for us. 🙂  
Currently, we have an AWS lambda that queries the host group names and Kubernetes cluster names for each environment in order to add them in the allow list. As this process is daily, the test or performance Kubernetes clusters won’t have a valid cost center value.
