Spring Cloud Actuator的绑定端点具有意外行为

时间:2019-07-12 08:56:55

标签: spring-kafka spring-cloud-stream spring-boot-actuator

在Spring Cloud Actuator可视化控件中,绑定端点未提供正确的结果。

这是我的绑定配置

import org.springframework.cloud.stream.annotation.EnableBinding;

import com.oxymoney.cashflow.cu.streams.EmailStream;
import com.oxymoney.cashflow.cu.streams.SmsStream;
import com.oxymoney.cashflow.walletbs.streams.AepsStream;
import com.oxymoney.cashflow.walletbs.streams.GenericRechargeStream;
import com.oxymoney.cashflow.walletbs.streams.MoneyTransferStream;
import com.oxymoney.cashflow.walletbs.streams.PaymentStream;
import com.oxymoney.cashflow.walletbs.streams.WalletTransactionStream;

@EnableBinding({SmsStream.class,MoneyTransferStream.class,PaymentStream.class,WalletTransactionStream.class,EmailStream.class,GenericRechargeStream.class,AepsStream.class})
public class StreamConfig {

}

它显示在最后一个流绑定上,理想情况下显示所有内容。

curl -H“内容类型:application / js” http://localhost:18382/actuator/bindings

[{"name":"cashflow_aeps-response","group":null,"pausable":true,"state":"running","extendedInfo":{"bindingDestination":"KafkaConsumerDestination{consumerDestinationName='cashflow_aeps-response', partitions=1, dlqName='null'}","ExtendedConsumerProperties":{"concurrency":1,"instanceCount":1,"maxAttempts":1,"backOffInitialInterval":1000,"backOffMaxInterval":10000,"backOffMultiplier":2.0,"extension":{"ackEachRecord":false,"autoRebalanceEnabled":true,"autoCommitOffset":true,"autoCommitOnError":true,"startOffset":null,"resetOffsets":false,"enableDlq":false,"dlqName":null,"dlqProducerProperties":{"bufferSize":16384,"compressionType":"none","sync":false,"batchTimeout":0,"messageKeyExpression":null,"headerPatterns":null,"configuration":{},"admin":{"replicationFactor":null,"replicasAssignments":{},"configuration":{}}},"recoveryInterval":5000,"trustedPackages":null,"standardHeaders":"none","converterBeanName":null,"idleEventInterval":30000,"configuration":{},"admin":{"replicationFactor":null,"replicasAssignments":{},"configuration":{}}}}}}]

0 个答案:

没有答案