Creating Alerts Based on Custom Exception Messages
TLDR ma asked how to create alerts from custom exception messages. Pranay suggested using trace data but Srikanth clarified that exceptions are stored separately and suggested using a ClickHouse query instead, providing an example.
Nov 02, 2023 (3 weeks ago)
ma
01:45 AMPranay
05:13 PMNov 03, 2023 (3 weeks ago)
Srikanth
02:32 AMexample
SELECT count() AS value, toStartOfInterval(timestamp, INTERVAL 5 MINUTE) AS interval
FROM signoz_traces.signoz_error_index_v2
WHERE timestamp BETWEEN {{.start_datetime}} AND {{.end_datetime}}
AND (serviceName = 'api-service')
AND (exceptionType = 'Not found')
GROUP BY interval
SigNoz Community
Indexed 1023 threads (61% resolved)
Similar Threads
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.
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.
Forwarding Exception Alerts from Rails to Mattermost
Andreas needs guidance setting up exception alerts in Rails to Mattermost. Amol provides a sample query and explains the setup process.