https://signoz.io logo
#support
Title
# support
r

Rod Palmer

10/15/2023, 11:51 PM
Hi All - I am demo'ing Signoz to my company and cant find Documentation on the variables that can be used in the Alert template namespace ? It doesnt seem to match the query, {{$serviceName}} comes up as not found for example.
s

Srikanth Chekuri

10/16/2023, 3:03 AM
It should be of the format
{{.Labels.serviceName}}
. @Ashu, we should get this added to the docs.
r

Rod Palmer

10/16/2023, 3:04 AM
Thanks!, is there a list of all the ones available ? I cant find that either
s

Srikanth Chekuri

10/16/2023, 3:05 AM
I may have misunderstood. What are trying to do?
r

Rod Palmer

10/16/2023, 3:05 AM
no, you didnt misunderstnad - that was the info I needed
I also wondered if their is a "namespace" of things available in that template, beyond the ones I build in my query
s

Srikanth Chekuri

10/16/2023, 3:07 AM
There are some trivial
{{.Annotations.}}
like alertname etc.. but mainly the labels from query can be accessed with
{{.Labels.label_name}}
r

Rod Palmer

10/16/2023, 3:07 AM
are the Annotations listed anywhere
s

Srikanth Chekuri

10/16/2023, 3:08 AM
Unfortunately no
r

Rod Palmer

10/16/2023, 3:10 AM
Ok, thanks.
s

Srikanth Chekuri

10/18/2023, 3:04 AM
@Chitransh Gupta we should get our docs updated for this.
c

Chitransh Gupta

10/18/2023, 3:58 AM
@Srikanth Chekuri can you please point out where in our docs this should be updated ?
s

Srikanth Chekuri

10/18/2023, 6:32 AM
c

Chitransh Gupta

10/19/2023, 6:15 AM
Cool. Created an issue here. Will work on it.
r

Rod Palmer

10/20/2023, 5:48 AM
thanks