#support

Setting up Alerts for Specific Exceptions with SigNoz

TLDR Taylor asked about setting up alerts for specific exceptions. Pranay shared a helpful resource and suggested go templates. Srikanth advised to group by exception type using labels to format the message.

Powered by Struct AI
9
8mo
Solved
Join the chat
Apr 05, 2023 (8 months ago)
Taylor
Photo of md5-70a65c96b293c1aafa37eaaefeaefa64
Taylor
09:07 PM
Is there a guide somewhere on setting up alerts for exceptions? I have exception logging working and I created an alert for exceptions, but the alert that I receive in Slack is more of a metric than the specific exception.
Pranay
Photo of md5-8df7ce0274b2473ec07403336e48b574
Pranay
09:34 PM
Taylor Can you share more on what do you mean by
> alert that I receive in Slack is more of a metric than the specific exception.
09:35
Pranay
09:35 PM
We had done an office hrs on Alerts. Might be helpful for you to get an idea - https://youtu.be/oQFMfEc9JNI
Taylor
Photo of md5-70a65c96b293c1aafa37eaaefeaefa64
Taylor
09:35 PM
What I would like to be able to do is just receive a message in Slack when I receive a new error. Something like this that we were getting from New Relic:
Image 1 for What I would like to be able to do is just receive a message in Slack when I receive a new error. Something like this that we were getting from New Relic:
09:36
Taylor
09:36 PM
It contains the basic error message and a link to the error in New Relic to view more details.
09:36
Taylor
09:36 PM
I don't really see anyway to configure an alert in SigNoz to contain information about a specific exception.
Pranay
Photo of md5-8df7ce0274b2473ec07403336e48b574
Pranay
09:39 PM
I see, that's a good question.

Did you check this section in the doc - https://signoz.io/docs/userguide/alerts-management/#1-configure-slack-channel

It mentions using go templates for setting alert specific info.
09:40
Pranay
09:40 PM
If that doesn't work, please create an issue - https://github.com/SigNoz/signoz/issues/new/choose
Apr 06, 2023 (8 months ago)
Srikanth
Photo of md5-ce04a9988e2fd758a659dc55be6f2543
Srikanth
01:11 AM
Taylor, in your query, you could group by an exception type and use the labels to format the alert message as you mentioned above. Let us know if you further help.