Alertmanager template

63 views
Skip to first unread message

Volker Dormeyer

unread,
Mar 29, 2022, 7:35:01 AM3/29/22
to promethe...@googlegroups.com
Hi all,

is it possible to load some value out of a plain file into an
alertmanager template, so that the value is assigned to a variable?

Best Regards,
Volker

Julius Volz

unread,
Mar 31, 2022, 2:04:20 PM3/31/22
to Volker Dormeyer, Prometheus Users
Hi Volker,

That's not possible unfortunately. The external file can be small and specific, but it has to be a valid Go template that can be loaded (example in https://prometheus.io/blog/2016/03/03/custom-alertmanager-templates/#template-files), not just a number or something like that.

Cheers,
Julius

--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/58250a94-8dee-6498-7c54-d4320baf9324%40ixolution.de.


--
Julius Volz
PromLabs - promlabs.com

Volker Dormeyer

unread,
Mar 31, 2022, 2:25:45 PM3/31/22
to Julius Volz, Prometheus Users
Hi Julius,

I have seen the blog post. I thought that, sigh.
Anyhow thanks for your answer.

Best Regards,
Volker
Reply all
Reply to author
Forward
0 new messages