@Pranay from the below screen shot, if the operation POST/api/process/start duration goes beyond 300 ms, in that case i need alert and email notification for the same.
We do not support email as channel in alerts yet. You can use webhook to send it to another service that can send an email.
r
Rahul Tiwari
07/06/2022, 8:13 AM
@Ankit Nayan Thank you for your reply
Rahul Tiwari
07/06/2022, 8:14 AM
@Ankit Nayan Getting something wrong error while setting up the alert. histogram_quantile(0.99, sum(rate(signoz_latency_bucket{service_name="workflow-service", operation="/api/process/start"}[5m])) by (le)) > 200 -- this is the query
a
Ankit Nayan
07/06/2022, 8:25 AM
@Rahul Tiwari you just need to replace the
expr
field key with the above query..rest of the field keys are mandatory though you should change the value of keys like
alert
name,
severity
,
summary
etc with relevant text
Ankit Nayan
07/06/2022, 8:27 AM
I would keep it something like below
Copy code
alert: High Latency of operation ProcessStart
expr: histogram_quantile(0.99, sum(rate(signoz_latency_bucket{service_name="workflow-service", operation="/api/process/start"}[5m])) by (le)) > 200
for: 0m
labels:
severity: critical
annotations:
summary: High Latency of operation ProcessStart in Workflow Service
description: "Latency is > 200
VALUE = {{ $value }}
LABELS = {{ $labels }}"
SigNoz is an open-source APM. It helps developers monitor their applications & troubleshoot problems, an open-source alternative to DataDog, NewRelic, etc.