Kafka Connect Alerting Options?

后端 未结 5 666
梦谈多话
梦谈多话 2021-01-13 10:45

Are there any alerting options for scenarios where a Kafka Connect Connector or a Connector task fails or experiences errors?

We have Kafka Connect running, it runs

5条回答
  •  青春惊慌失措
    2021-01-13 11:18

    Building on what Randall says, this shell script uses the Confluent CLI to show the state of all connectors and tasks. You could use that as the basis of alerting:

    Robin@asgard02 ~/c/confluent-3.3.0> ./bin/confluent status connectors| \
                                        jq '.[]'| \
                                        xargs -I{connector} ./bin/confluent status {connector}| \
                                        jq -c -M '[.name,.connector.state,.tasks[].state]|join(":|:")'| \
                                        column -s : -t| \
                                        sed 's/\"//g'| \
                                        sort
    
    file-sink-mysql-foobar       |  RUNNING  |  RUNNING
    jdbc_source_mysql_foobar_01  |  RUNNING  |  RUNNING
    

提交回复
热议问题