我们正在使用2.1.3版本的春季云流kafka流-
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-stream-binder-kafka-streams</artifactId>
<version>2.1.3.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-stream-binder-kafka-core</artifactId>
<version>2.1.3.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-stream-kafka</artifactId>
<version>2.1.3.RELEASE</version>
</dependency>
application.yml具有属性集-
management.health.binders.enabled = true
management.health.kafka.enabled = true
但对于卡夫卡粘合剂,我们仍然处于UNKNOWN状态-
"binders": {
"status": "UNKNOWN",
"details": {
"ktable": {
"status": "UNKNOWN"
},
"kstream": {
"status": "UNKNOWN"
},
"globalktable": {
"status": "UNKNOWN"
}
}
}
对此表示感谢。
答案 0 :(得分:2)
Kafka Streams活页夹系列的健康指标仅进入2.2行。您是否有可能从2.1.3升级到2.2? Here是运行状况指示器正常运行的应用程序。这使用的是3.0快照,但是2.2也可以使用。运行此应用程序时,输出如下。
curl --silent http://localhost:8080/actuator/health/ | jq .
{
"status": "UP",
"components": {
"binders": {
"status": "UP",
"components": {
"globalktable": {
"status": "UP",
"details": {
"threadState": "RUNNING",
"standbyTasks": {},
"activeTasks": {
"partitions": [
"partition=0, topic=process-applicationId-KSTREAM-AGGREGATE-STATE-STORE-0000000003-repartition"
],
"taskId": "1_0"
},
"threadName": "process-applicationId-fa4e65eb-6060-43f0-94eb-4c4bf1497613-StreamThread-1"
}
},
"kstream": {
"status": "UP",
"details": {
"threadState": "RUNNING",
"standbyTasks": {},
"activeTasks": {
"partitions": [
"partition=0, topic=process-applicationId-KSTREAM-AGGREGATE-STATE-STORE-0000000003-repartition"
],
"taskId": "1_0"
},
"threadName": "process-applicationId-fa4e65eb-6060-43f0-94eb-4c4bf1497613-StreamThread-1"
}
},
"ktable": {
"status": "UP",
"details": {
"threadState": "RUNNING",
"standbyTasks": {},
"activeTasks": {
"partitions": [
"partition=0, topic=process-applicationId-KSTREAM-AGGREGATE-STATE-STORE-0000000003-repartition"
],
"taskId": "1_0"
},
"threadName": "process-applicationId-fa4e65eb-6060-43f0-94eb-4c4bf1497613-StreamThread-1"
}
}
}
},
"diskSpace": {
"status": "UP",
"details": {
...
}
},
"ping": {
"status": "UP"
}
}
}
注意-下列注释中提到的未显示多处理器运行状况信息的问题已在活页夹(3.0.0)的最新快照中得到解决,它将作为RC1的一部分提供。