I have created a dashboard to monitor multiple MuleSoft API metrics ( Response Time, Endpoint Usage, Request Count). Each tile contains respective DQL query that includes the dimension `request_attribute.Client-Id` in GUID format.
For example, when a API request occurs, Dynatrace automatically captures the API name, endpoint, and also records the Client ID in `request_attribute.Client-Id`. For dashboard filtering and data splitting, we require three key details: API name, endpoint, and client ID (The API request header does not have Client Name, so we capture ID in request attribute).
timeseries {
value = sum(service.muleapi.response.count)
},
by: {dt.entity.service, endpoint.name, `request_attribute.Client-Id`},
Separately, I have a custom metric (`custom.api.metric`) ingested via the Dynatrace API, which contains the mapping of `clientid` (GUID) to `clientname` (two columns).
timeseries testmetric = sum(custom.api.metric), by: { clientid, clientname }
Within a single DQL query for a tile, I want to:
1. Fetch the main metric (e.g., API Response Time) as a timeseries.
2. Fetch the `custom.testmetric` as a timeseries.
3. Match `request_attribute.Client-Id` from the main metric with `clientid` from `custom.api.metric`.
4. Dynamically alias or replace the GUID with the corresponding `clientname`.
Is there a way to join these two timeseries results within a single query, so I can achieve this aliasing/mapping without hardcoding as a lookup data record[] table?