Dater Explorer Code Query - filter synthax

Hello @r_weber ,

first I don’t think you can count individual requests in metric selectors at all. These metrics selectors work on timeseries data only. For counting the individual requests, you need to use the calculated service metrics and then use the metric for SLO for example. I’d also love to have the capability to count number requests with response time condition in the SLO or custom chart without using calculated service metrics, but I don’t think this will come anytime soon as it is a different source of information.  So filter transformation works on dimensions. So if a metric has multiple dimensions, you can filter on any of them.

Back to your question, you need to specify an aggregation first. So instead of:

builtin:service."keyRequest".response.server:filter(series(avg,lt,300000)):splitBy():count

You need will need:

builtin:service."keyRequest".response.server:count:splitBy():filter(series(avg,lt,300000))

This will give you the number of key requests for which the average response time in the interval is less than 300000 microseconds. I’m not sure if this is the output you want.

I believe you need the number of key requests which are faster than 300000 which is not possible without using calculated metrics.