Re: [prometheus-users] Alertmanager - playing with the templating engine to create custom emails

2022-01-10 Thread Adrian Popa
Hello everyone - sorry to bump my own thread, but I've figured it out (after going through a basic golang course) and playing around. Hope this information helps others as well (and maybe improves documentation too). So - my original goal was to modify the original email template and have customiz

Re: [prometheus-users] Alertmanager - playing with the templating engine to create custom emails

2021-11-09 Thread Adrian Popa
Well, I'm back sooner than I had hoped. I've upgraded my alertmanager (and prometheus) to their latest version to get the template option in amtool. Now, I'm trying to get it to work... I am able to query for a specific alert: ``` /alertmanager $ amtool -o extended --alertmanager.url=http://127.0.

Re: [prometheus-users] Alertmanager - playing with the templating engine to create custom emails

2021-11-09 Thread Adrian Popa
Thank you for the tip! I'll look into it! On Mon, Nov 8, 2021 at 3:41 PM Julien Pivotto wrote: > There is such a functionality in amtool: > > amtool template render --template.glob='/foo/bar/*.tmpl' > --template.text='{{ template "slack.default.markdown.v1" . }}' > > On 08 Nov 11:33, Adrian Popa

Re: [prometheus-users] Alertmanager - playing with the templating engine to create custom emails

2021-11-08 Thread Julien Pivotto
There is such a functionality in amtool: amtool template render --template.glob='/foo/bar/*.tmpl' --template.text='{{ template "slack.default.markdown.v1" . }}' On 08 Nov 11:33, Adrian Popa wrote: > Kind bump? > How do you guys play with email templates and tune them until you like it? > There mu

Re: [prometheus-users] Alertmanager - playing with the templating engine to create custom emails

2021-11-08 Thread Adrian Popa
Kind bump? How do you guys play with email templates and tune them until you like it? There must be an easier way than poking around every time and restarting alertmanager... On Thu, Oct 21, 2021 at 3:02 PM Adrian Popa wrote: > Hello everyone! > I'm new here, but I've been playing with prometheu

[prometheus-users] Alertmanager - playing with the templating engine to create custom emails

2021-10-21 Thread Adrian Popa
Hello everyone! I'm new here, but I've been playing with prometheus/alertmanager for about a year now and I'm still learning. I've set up most of the monitoring I want to do, but now I'm working on alerts. I have some alert-centric questions I'd like to ask, in order to be able to learn more.