Alert template not working

We are trying to find a way to integrate Kapacitor with alertmanager (prometheus).
As the incoming format for alertmanager is different from “post” format of kapacitor we tried to customise it using alert template.

We tried both alert-template and alert-template-file irrespective whatever we customise the JSON payload is not changing(we get default Kapacitor JSON post format). any idea ?

We are setting web hook url in tick script using post(‘url’) syntax

Check this

Hi. I’ve been trying to read through that and the instructions are not very clear. Can someone please point me to some documentation that will help on how to write custom json template.


Try this:

Let me know if you get stuck.