-
Notifications
You must be signed in to change notification settings - Fork 693
Spring actuator shows GCP Pub/Sub health 'UNKNOWN' #2030
Comments
We do not have a health indicator implemented for Pub/Sub. |
I have similar request in AWS Kinesis Binder: spring-cloud/spring-cloud-stream-binder-aws-kinesis#105 So, yeah... It looks like there is a composite in Spring Cloud Stream Core scanning all the available binders in the classpath, but it looks like afterwards it fully depends on the implementation provided by the binder. See Kafka and Rabbit binders for possible health check implementations: https://github.com/spring-cloud/spring-cloud-stream-binder-kafka/blob/master/spring-cloud-stream-binder-kafka/src/main/java/org/springframework/cloud/stream/binder/kafka/KafkaBinderHealthIndicator.java |
OK, then we'll accept it as a feature request. Contributions are welcomed, as always! |
@meltsufin I'll gladly contribute with an implementation, will look into it today |
Just as an FYI I was unable to reproduce this error on the However, if there's an issue, say your service account does not have access to pubsub, it would still come up as healthy, which I think its wrong. I have a PR ready to go to at least implement the right health endpoint. @meltsufin I'll submit a much smaller PR for a |
Hi,
In my application, I am using following versions
Spring cloud version 'Finchley.SR2'
Spring-cloud-gcp-starter-pubsub version '1.1.0.RELEASE'
Spring-cloud-gcp-pubsub-stream-binder version '1.1.0.RELEASE'
Spring version '5.1.2.RELEASE'
When I getting health from spring actuator,
Pub/Sub health mentioned as 'UNKNOWN'
"binders":{"status":"UNKNOWN","details":{"pubsub":{"status":"UNKNOWN"}}}
Is there any configuration I missed to enable health check for Pub/Sub?
The text was updated successfully, but these errors were encountered: