Capacitor Alerts to Kafka Broker

Hi Guys,

i have a question regarding the Kafka Handler.
I have an alert pipeline and I want to send all the alerts to a Kafka topic on another server. This works fine from the technical perspective.
What i have not figured out is, to design the kafka message. Up to now it is a mess with a lot of unnecessary data in it.
Is there any way to design this? There is a “template” field in the script, but i have no knowledge about how to populate this field.

Thanks in advance!

BR
Felix