This message was deleted.
# general
s
This message was deleted.
p
@Rahul Tiwari The expression here may be what you need - https://github.com/SigNoz/signoz.io/issues/404#issue-1293935258
r
@Pranay i don't need this.
@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.
a
@Rahul Tiwari I just added an example for alerting an endpoint/operation. The alert can be configured from https://github.com/SigNoz/signoz.io/issues/404#issuecomment-1175851619
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
@Ankit Nayan Thank you for your reply
@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
@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
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 }}"