You, you can do this. For example, if you take the span metrics generated by SigNoz from metrics, there is a metric called
signoz_calls_total
that contains attributes
status_code
. You can use
SUM_RATE(signoz_calls_total)
where
status_code!=STATUS_CODE_ERROR
for the total successful operations. And divide it by
SUM_RATE(signoz_calls_total)
without any filters
r
Ri Sheng Chen, Sunny
02/26/2024, 2:57 AM
I mean when we use log metrics is easy。
Ri Sheng Chen, Sunny
02/26/2024, 2:58 AM
it is hard to write sql when use percentage query。
s
Srikanth Chekuri
02/26/2024, 4:34 AM
I didn't understand your point. The same thing should work for logs as well. The query A will be used for success and query B will be used for total and you can use formula
SigNoz is an open-source APM. It helps developers monitor their applications & troubleshoot problems, an open-source alternative to DataDog, NewRelic, etc.