# How to send alerts to Kafka cluster by kapacitor's tickscript?

**URL:** <https://community.influxdata.com/t/how-to-send-alerts-to-kafka-cluster-by-kapacitors-tickscript/6208>\
**Category:** Kapacitor\
**Tags:** kapacitor\
**Created:** [August 13, 2018, 2:24am UTC](https://community.influxdata.com/t/how-to-send-alerts-to-kafka-cluster-by-kapacitors-tickscript/6208 "2018-08-13T02:24:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![codeffee](https://avatars.discourse-cdn.com/v4/letter/c/f17d59/32.png) [@codeffee](https://community.influxdata.com/u/codeffee)\
**Post date:** [August 13, 2018, 2:24am UTC](https://community.influxdata.com/t/how-to-send-alerts-to-kafka-cluster-by-kapacitors-tickscript/6208/1 "2018-08-13T02:24:31Z")

</div>

Hi,

I have written an issue on [Kafka cluster cannot receive alerts · Issue #2017 · influxdata/kapacitor · GitHub](https://github.com/influxdata/kapacitor/issues/2017) with details

I wonder how to send alerts to kafka.  
kapacitor 1.5.1

stream  
|from()  
.measurement(‘win\_cpu’)  
|alert()  
.crit(lambda: “Percent\_Processor\_Time” \> 80)  
.message(‘Hey, check your CPU’)  
.kafka()  
.cluster(‘kafka01’)  
.kafkaTopic(‘cpu-alerts’)

Everything seems OK, but kafka cluster cannot receive messages from my kapacitor.
