29 Aug 2022 01:04 PM - last edited on 29 Aug 2022 02:24 PM by MaciejNeumann
Hi,
Please let me know whether it possible to trigger custom alerts for Slow database queries.
I tried with below steps
Created custom metric , metric name: DB-Statements-RT-GT-5ms
2: used above metric in Data Explorer to build query to
3.used code to create "Custom Alert"
calc:service.db_statements_rt_gt_5ms:filter(and(or(in("dt.entity.service",entitySelector("type(service),entityName.equals(~"sto_intranet~")")),in("dt.entity.service",entitySelector("type(service),entityName.equals(~"sto_internet~")"))))):splitBy("dt.entity.service",Dimension):avg:auto:sort(value(avg,descending)):limit(10)
4: Alert preview shows Zero alerts dont know why,
please help me to configure alerts to trigger custom alert when DB query Response time is above 5ms, it would be great if it show queries along with alerts,
please let me know if there are any other approaches also.
29 Aug 2022 01:47 PM
I got the Problems created now, please let me know whether I can link the specific queries breaching theshold ?