Creating an Alert for Error Percentage in Node.js App
TLDR Paulo needed help creating an alert for error percentage in a Node.js app. Srikanth guided them through using the query builder and selecting the correct operations and filters.
Mar 29, 2023 (8 months ago)
Paulo
01:02 PMHow i made this query?
Srikanth
02:38 PMPaulo
02:41 PMPaulo
02:43 PMSrikanth
02:45 PMSUM_RATE
of spans with status_code=STATUS_CODE_ERROR
for a service as query A
to SUM_RATE
of all spans from same service query B
and using Formula
of (A/B)*100
.Srikanth
02:45 PMPaulo
02:46 PMSrikanth
02:47 PMsignoz_calls_total
.Paulo
02:47 PMPaulo
02:50 PMPaulo
02:51 PMPaulo
02:51 PMStatus_code LIKE status_code_error
Srikanth
03:08 PMPaulo
06:04 PMPaulo
06:04 PMPaulo
06:05 PMPaulo
06:05 PMSrikanth
06:07 PMPaulo
06:14 PMPaulo
06:15 PMSrikanth
06:15 PMPaulo
06:16 PMPaulo
06:16 PMSrikanth
06:19 PM/api/users/{user_id}
-> service-a db.operation
-> return. In this case, the /api/users/{user_id}
is the top-level span i.e span where the trace journey started for the service. There can be a number of sub-operations under that such as db.operation
etc...Paulo
06:23 PMPaulo
06:24 PMMar 30, 2023 (8 months ago)
Srikanth
02:15 AMYes
> how the default do the service discovery of all
Are you talking about the service entry spans or service discovery in k8s?
Paulo
04:47 PMPaulo
04:47 PMPaulo
04:48 PMSrikanth
04:53 PMPaulo
04:56 PMPaulo
04:57 PMSrikanth
04:57 PMSrikanth
04:58 PMtcp.connect
is most likely some inner span in service not the top level/entry spanPaulo
04:59 PMSrikanth
05:00 PMPaulo
05:09 PMSigNoz Community
Indexed 1023 threads (61% resolved)
Similar Threads
Setting Up Alerts for p95 and p99 Latencies Using Clickhouse Query
Arnab asked for a Clickhouse query to set up alerts for p95 and p99 latencies. Srikanth provided guidance on using the query builder and clarification on service entry spans. Arnab will check and get back after verifying OpenTelemetry metrics.
Issues with Signoz 10.2: Grouping, Missing Traces, and Capturing Requests
Anil reported issues with Signoz 10.2, including grouping, missing traces, and capturing requests. Srikanth suggested upgrading to a newer version. The issue was resolved after upgrading the node version to 18 and additional clarifications were provided.
Customizing Signoz Error Alert Descriptions
Sumanth needed help with making Signoz error alert descriptions more descriptive. Amol suggested using {{.Labels.serviceName}} and discussed limitations of adding labels in queries.
Extracting Custom Fields as Attributes from Log in SigNoz
Harald wants to have custom fields from their body parsed as attributes in the SigNoz logger. They have tried implementing suggestions from nitya-signoz and Prashant, but the issue remains unsolved due to a potential race condition encountered while executing the code. They have provided a full example using Kind for further assistance.
Incorrect Alert Firing Issue in Threshold Condition
Harshith.R.S is experiencing an issue with alerts firing when the value is above the threshold. The issue remains unresolved after trying different query modifications suggested by Amol.