Hi,

On 3/24/20 10:25 AM, Big Noob wrote:
> Hello everyone,
> I have an SMTP for testing, I see that AlertManager is creating a
> connection with it (I have done all the necessary configuration), I want
> to know how can I create a custom mailing.
> Thanks for your time.

Have a look at the alertmanager email receiver config, especially at the
"html" and optionally "text" fields [1]. They take template strings,
which means that you can control the content.

It's a good idea to start with the default template (email.default.html)
[2].

[1] https://prometheus.io/docs/alerting/configuration/#email_config
[2]
https://github.com/prometheus/alertmanager/blob/master/template/default.tmpl#L85

Further links:
https://prometheus.io/docs/alerting/notifications/
https://prometheus.io/docs/alerting/notification_examples/

Kind regards,
Christian

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/aeb30dd7-ef27-c09a-0b39-071a75e98ced%40hoffmann-christian.info.

Reply via email to