https://signoz.io logo
#general
Title
# general
n

Nithin B S

01/23/2023, 6:55 AM
we are using signoz v0.14.0 we are facing issue with setting up alerts, can anyone guide with some example for latency p99 screen shot attached for reference
p

Pranay

01/23/2023, 7:07 AM
@Nithin B S Have you seen this tutorial - https://signoz.io/docs/tutorial/writing-clickhouse-queries-in-dashboard/ ? Might give you some more ideas
s

Srikanth Chekuri

01/23/2023, 7:34 AM
@Nithin B S, why are you using P99 on
signoz_latency_count
? What’s the reasoning? If you are looking for quantile on span metrics duration, you should use
HIST_QANTILE_99
on
signoz_latency_bucket
with group by
service_name
,
le
n

Nithin B S

01/23/2023, 8:05 AM
@Srikanth Chekuri i was trying to create alert for p99 latency with threshold 200ms, i created as u mentioned. alert is working as expected. what should i select for creating alerts for external call duration and db call duration alerts
s

Srikanth Chekuri

01/23/2023, 8:25 AM
External and DB calls don’t support the same level of capability https://github.com/SigNoz/signoz-otel-collector/tree/main/processor/signozspanmetricsprocessor#signoz-span-metrics-processor. You can, however, create an alert for average latency duration instead if pXX. Let me know if you would like to use that, and I will share the steps.
n

Nithin B S

01/23/2023, 8:32 AM
ok, please share the steps
s

Srikanth Chekuri

01/23/2023, 8:37 AM
It will be
SUM_RATE
of
signoz_external_call_latency_sum
devided by
SUM_RATE
of
signoz_external_call_latency_count
. You will use formula tab for expression.
n

Nithin B S

01/23/2023, 10:56 AM
thanks, its working as expected
3 Views