DQL
Questions about Dynatrace Query Language
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Entity Selector with Open Telemetry Metrics

prabalr
Visitor

Hello All, 

I am using the Dynatrace Data Explorer (and not DQL) to evaluate this expression 

bdc.fos.lcm.dataproduct.status.count.gauge:filter(eq("status", "PROVISIONING")):splitBy(region, environment)
+
bdc.fos.lcm.dataproduct.status.count.gauge:filter(eq("status", "PROVISIONING_ERROR")):splitBy(region, environment)

What I was thinking is if I could combine this using a single filter expression as mentioned here. https://docs.dynatrace.com/docs/discover-dynatrace/references/dynatrace-api/environment-api/metric-v...
This would be using an entity selector and I was trying to write an expression like this: 
bdc.fos.lcm.dataproduct.status.count.gauge:filter(in("status",entitySelector("attribute("PROVISIONING", "PROVISIONING_ERROR")"))):splitBy(region, environment)
But is not syntactically correct. 

Any thoughts on what may be going wrong? 




1 REPLY 1

Julius_Loman
DynaMight Legend
DynaMight Legend

That's not entity selector but a filter in metric selector

bdc.fos.lcm.dataproduct.status.count.gauge
:filter(or(eq("status","PROVISIONING"),eq("status","PROVISIONING_ERROR")))
:splitBy(region, environment)

 

Dynatrace Ambassador | Alanata a.s., Slovakia, Dynatrace Master Partner

Featured Posts