Hi All,
how can I fetch with a DQL query the endpoint of a service after enhancing the new feature of Enhanced Endpoints ?
Trying with
fetch dt.entity.service_method
I get only the old key request, how can I query all the endpoint discovered on a service ?
Thanks
Regards
Pasquale
hi,
try this:
timeseries requests = sum(dt.service.request.count),
by: { dt.entity.service, endpoint.name }
| filter dt.entity.service == "SERVICE-9C186B48B0905E85"
| sort arraySum(requests) desc
Hi, it works but I get many endpoint names as NON_KEY_REQUESTS
Hi,
That usually means those requests are not promoted/classified as individual key requests/endpoints in the metric dimension, so Dynatrace groups them under NON_KEY_REQUESTS.
You can try filtering them out:
timeseries requests = sum(dt.service.request.count),
by: { dt.entity.service, endpoint.name }
| filter dt.entity.service == "SERVICE-9C186B48B0905E85"
| filter endpoint.name != "NON_KEY_REQUESTS"
| sort arraySum(requests) desc
But this will only show endpoints that Dynatrace exposes individually in endpoint.name.
If you need all raw request names/paths, you may need to query spans instead, because service request metrics can aggregate non-key requests into NON_KEY_REQUESTS.
thank you, it is fine like that