I want to know how many requests are currently executing at any given second in Azure Application Insights.
For example, if request 1 starts at 10:00:00 and finished at 10:00:03 (timestamp of 10:00:00 and duration of 3999ms), it should be counted in the rows for 10:00:00, 10:00:01, 10:00:02 and 10:00:03
The output should be something like:
| timestamp | count_ |
| ----------------------- | ------ |
| 0000-00-00T00:00:00.000 | 254 |
| 0000-00-00T00:00:00.001 | 345 |
| 0000-00-00T00:00:00.002 | 216 |
I thought I could maybe use the join
operator against a table of seconds, but I cannot use something like on $right.timestamp >= $left.timestamp and $right.timestamp + duration < $left.timestamp
, kusto replies with join: Only equality is allowed in this context.
.
So how can I get concurrent requests (or dependencies) by timestamp bin?