简体   繁体   中英

send metrics to datadog from ec2 datadog agent when syatemctl is used to stop kafka-connect- worker

My Kafka-worker-connect and Datadog agent on ec2 and sends metric to Datadog. when I use systemctl stop Kafka-worker-connect, its shutting down the whole application without sending the metric to datadog. I tried curl delete operation to stop Kafka its working but it gonna delete the Kafka-connect.

so, I want to run systemctl stop command to stop Kafka-connect, and I need a solution to send metric to datadog as well that Kafka- connect is stopped

Metrics are usually sent by running applications, and a metric for application start / stop does not make sense.

Kafka / Kafka connect stopping should generate either an event, or you can check the log in Datadog (after setting up log push to Datadog) to detect a shutdown.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM