I’ve creating some custom metrics where I’m posting a time taken (in second) with a number of field (tags? I come from an influx background).
custom.metric,type=search,applid=1,doctype=A,user=User1,recordsreturned=10 1.5
custom.metric,type=search,applid=1,doctype=B,user=12345,recordsreturned=10 1.5
As you can imagine, the user field is likely to have lots of entries…and while filtering on a single user to see all their counts, generally things would be banded together. In this case, User1 is internal, and user 12345 is external.
I use SQL server for this information primarily, and our queries are somewhat like
select count(*) where user is numeric as ExternalCount
select count(*) where user is not numeric as internalCount
Is there a function I can use in dynatrace to create Data Explorer query similarly? Or does my upstream application need to work that out and add it as it’s own field when submitting the metric.