#support

Understanding Variables for Signoz's Log-Based Alert Notifications

TLDR Jun asked about variables usable in Signoz's alert notifications. Srikanth clarified that all attributes from the 'GROUP BY' clause can be used.

Powered by Struct AI
3
3w
Solved
Join the chat
Aug 30, 2023 (1 month ago)
Jun
Photo of md5-47b3450d3e3021b11db7551d8b396fa3
Jun
06:26 AM
Hi support, I would like to check what variables we able to use in Signoz's log-based alert notifications? I couldn't find any documentation detailing this..thanks!
Srikanth
Photo of md5-ce04a9988e2fd758a659dc55be6f2543
Srikanth
12:18 PM
You can use all the attributes from the GROUP BY clause. The syntax for using them is {{ .Lables.{variable_name_here} }} , for instance if you want to use k8s_namespace_name from group by clause it would be {{ .Labels.k8s_namespace_name}} .
Sep 04, 2023 (3 weeks ago)
Jun
Photo of md5-47b3450d3e3021b11db7551d8b396fa3
Jun
04:04 AM
Thanks Srikanth! Will try this out