# Create Cost Views Using DQL for Resource and Budget Analysis

**URL:** <https://community.dynatrace.com/t/create-cost-views-using-dql-for-resource-and-budget-analysis/53704>\
**Category:** DQL\
**Tags:** dql, licensing\
**Created:** [October 13, 2025, 2:12pm UTC](https://community.dynatrace.com/t/create-cost-views-using-dql-for-resource-and-budget-analysis/53704 "2025-10-13T14:12:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mateusbmo1](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mateusbmo1/32/24958_2.png) [@Mateusbmo1](https://community.dynatrace.com/u/Mateusbmo1)\
**Post date:** [October 13, 2025, 2:12pm UTC](https://community.dynatrace.com/t/create-cost-views-using-dql-for-resource-and-budget-analysis/53704/1 "2025-10-13T14:12:33Z")

</div>

Hello, everyone

Everything good?  
I need some help. I’m creating a view in Dynatrace to obtain the cost per service we currently use in our tenants.  
However, I wasn’t successful in creating the view for **“HTTP Monitor”** and **“Real User Monitoring.”**

Could you please assist me?  
I created a DQL view that works, but it only retrieves the costs for **Services** and **Hosts** :

ow should the query look for **HTTP Monitor** and **Real User Monitoring**?

```auto
fetch dt.system.events
| filter event.kind == "BILLING_USAGE_EVENT" and in(event.type, {"Full-Stack Monitoring"})
| lookup [fetch dt.entity.host], sourceField:dt.entity.host, lookupField:id, fields:{hostGroupName}
| fieldsAdd nome_do_host = entityName(dt.entity.host), monitoring_source = monitoring_source, hostGroupName
| summarize by:{event.type, nome_do_host, hostGroupName}, {`Uso do FullStack mode`=sum(billed_gibibyte_hours), `Uso de Infrastructure mode`=sum(billed_host_hours), IL=sum(billed_bytes), DP=sum(data_points), IB=sum(ingested_bytes)}
| fieldsAdd
      Custo =
        if(event.type == "Full-Stack Monitoring", `Uso do FullStack mode` * 9999/100000, else:
        if(event.type == "Infrastructure Monitoring", `Uso de Infrastructure mode` * 22222/100000)),
      Centro_de_custo = hostGroupName
| fields `Nome do servidor`=nome_do_host, Custo, `Tipo de monitoração`=event.type, `Uso do FullStack mode`, `Uso de Infrastructure mode`, Centro_de_custo
| summarize by:{`Nome do servidor`}, Custo = sum(Custo)
| sort Custo desc

```

---

<div class="post-metadata">

**Author:** ![ZackE](https://avatars.discourse-cdn.com/v4/letter/z/9fc29f/32.png) [@ZackE](https://community.dynatrace.com/u/ZackE)\
**Post date:** [October 13, 2025, 7:20pm UTC](https://community.dynatrace.com/t/create-cost-views-using-dql-for-resource-and-budget-analysis/53704/2 "2025-10-13T19:20:11Z")

</div>

Unfortunately, HTTP Monitor and Real User Monitoring billing events do not appear to be available in Grail yet. For now, all you really have are the classic metrics. Here are links&nbsp;[Real User Monitoring](https://docs.dynatrace.com/docs/shortlink/built-in-metrics#real-user-monitoring)&nbsp;and [Synthetic Monitors](https://docs.dynatrace.com/docs/shortlink/built-in-metrics#synthetic)&nbsp;billing metrics. I think [this page](https://docs.dynatrace.com/docs/discover-dynatrace/references/semantic-dictionary/model/dt-system-events) should list all billing events available in Grail for your query above.
