logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

微服务日志调用链事件(request-id),从nginx到elk

Nginx生成request-id每次请求通过nginx时,生成一个request-id,添加到请求头上。通过nginx内置的 $request_id 实现proxy_set_header X-Request-Id $request_id;springCloudGateway保存并传递request-idlogstash在springboot logback.xml中的配置<appender

#java#spring boot#运维
spring boot health indicator原理及其使用

作用sping boot health 可以通过暴露的接口来提供系统及其系统组件是否可用。默认通过/health来访问。返回结果如下:{"status": "UP","discoveryComposite": {"description": "Spring Cloud Eureka Discovery Client","status": "UP","discoveryClient": {"desc

#java#spring boot#restful +2
到底了