# Combining timeseries data for synthetic availability best practices

**URL:** <https://community.dynatrace.com/t/combining-timeseries-data-for-synthetic-availability-best-practices/54185>\
**Category:** Synthetic Monitoring\
**Tags:** http-monitor, browser-monitors, synthetic-monitoring\
**Created:** [November 24, 2025, 4:16pm UTC](https://community.dynatrace.com/t/combining-timeseries-data-for-synthetic-availability-best-practices/54185 "2025-11-24T16:16:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Moonrox](https://avatars.discourse-cdn.com/v4/letter/m/a6a055/32.png) [@Moonrox](https://community.dynatrace.com/u/Moonrox)\
**Post date:** [November 24, 2025, 4:16pm UTC](https://community.dynatrace.com/t/combining-timeseries-data-for-synthetic-availability-best-practices/54185/1 "2025-11-24T16:16:13Z")

</div>

I have written the following DQL and it works for my current use case but I was wondering about efficiency.

timeseries series = avg(dt.synthetic.http.availability),  
by: { dt.entity.synthetic\_test, dt.entity.synthetic\_location, dt.entity.http\_check },  
filter: { contains(entityAttr(dt.entity.http\_check, “entity.name”), “variable”) }  
| append [  
timeseries series = avg(dt.synthetic.browser.availability),  
by: { dt.entity.synthetic\_test, dt.entity.synthetic\_location },  
filter: { contains(entityAttr(dt.entity.synthetic\_test, “entity.name”), “variable”) }  
]

Is this the most efficient way to run this combined data set?

i have 2 questions.

1. In DQL can the variable be set as a variable and not a string that I have to modify in 2 places.

2. In DQL is there a more efficient way to combine the data.&nbsp; (Is append the best way?)

---

<div class="post-metadata">

**Author:** ![t\_pawlak](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/t_pawlak/32/14991_2.png) [@t\_pawlak](https://community.dynatrace.com/u/t_pawlak)\
**Post date:** [November 24, 2025, 8:56pm UTC](https://community.dynatrace.com/t/combining-timeseries-data-for-synthetic-availability-best-practices/54185/2 "2025-11-24T20:56:04Z")

</div>

Hi,

Pure DQL does not support internal variables. You can define variables and use them&nbsp;when:

the query runs inside a Dashboard tile, or inside a Notebook with defined parameters.

In that case, $variableName gets substituted before execution.

Ad2.&nbsp;dt.synthetic.http.availability and dt.synthetic.browser.availability are two different metric keys.  
Because they are stored separately, Dynatrace cannot fetch both in a single timeseries clause.

That means,&nbsp;You must run two metric queries and the correct way to combine the results is exactly what you did.  
append works very efficiently for this scenario because it is just concatenating two independent result sets.There is no join, no correlation, no expensive pipeline step.
