TLDR Rod was seeking info on using variables in Signoz's Alert template namespace. Srikanth explained the format and mentioned necessary updates to the documentation which Chitransh SigNoz took up.
It should be of the format `{{.Labels.serviceName}}`. <@4K148a>, we should get this added to the docs.
Thanks!, is there a list of all the ones available ? I cant find that either
I may have misunderstood. What are trying to do?
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
There are some trivial `{{.Annotations.}}` like alertname etc.. but mainly the labels from query can be accessed with `{{.Labels.label_name}}`
are the Annotations listed anywhere
Unfortunately no
Ok, thanks.
Chitransh SigNoz we should get our docs updated for this.
Srikanth can you please point out where in our docs this should be updated ?
Here
Cool. Created an issue
thanks
Rod
Sun, 15 Oct 2023 23:51:23 UTCHi 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.