spring-cloud-stream-redis
  • 介绍
  • 快速开始
  • 安装
  • 配置
  • 健康检查
  • 更新日志
  • Maven central version
  • 简体中文
  • English
GitHub
  • 介绍
  • 快速开始
  • 安装
  • 配置
  • 健康检查
  • 更新日志
  • Maven central version
  • 简体中文
  • English
GitHub
  • 指南

    • 介绍
    • 快速开始
    • 安装
    • 配置
    • 健康检查

健康检查

请确保您已经安装了 spring-cloud-stream-redis,如果您尚未安装,请查看 安装。

开启配置

management:
  endpoints:
    web:
      exposure:
        include: '*'
  endpoint:
    health:
      show-details: always
  health:
    binders:
      enabled: true
    redis:
      enabled: false

访问路径

/actuator/health

示例:

{
    "status": "UP",
    "components": {
        "binders": {
            "status": "UP",
            "components": {
                "redis": {
                    "status": "UP",
                    "details": {
                        "version": "7.1.2",
                        "pool.maxTotal": 8,
                        "pool.maxIdle": 8,
                        "pool.minIdle": 0
                    }
                }
            }
        },
        "ping": {
            "status": "UP"
        }
    }
}
在 GitHub 上编辑此页
上次更新:
Prev
配置