Dear experts,
I have the need to create a Problem based on two different metrics related to the same service, on one side it would be dt.service.request.response_time and on the other dt.service.request.failure_count, both metrics refer to the same endpoint.
I have created a DQL query that shows me in the same graph both metrics but I don’t know if it can be alerted following the following conditions:
- response_time > 300 ms
- failure_count > 20
- For 60 minutes
Only if all three conditions are met, the problem should be raised to the trouble ticket.
DQL:
timeseries interval: 1m, { response_time = avg(dt.service.request.response_time),
count(dt.service.request.failure_count)}, from:-1h, to:now(),
by: { endpoint.name }
| filter endpoint.name == “test”
Thank you very much for your knowledge and time
