consul servicecheck 查看健康信息

在浏览器中地址栏输入如下信息:http://localhost:8500/v1/agent/checks

返回信息如下:

{
    "service:springboot-security-oauth2-zuul-sso-server-1881": {
        "Node": "8DBQ2F05HUXZ2QO",
        "CheckID": "service:springboot-security-oauth2-zuul-sso-server-1881",
        "Name": "Service 'springboot-security-oauth2-zuul-sso-server' check",
        "Status": "critical",
        "Notes": "",
        "Output": "Get http://host.docker.internal:1881http//localhost:1881/auth/health: dial tcp: lookup host.docker.internal:1881http: no such host",
        "ServiceID": "springboot-security-oauth2-zuul-sso-server-1881",
        "ServiceName": "springboot-security-oauth2-zuul-sso-server",
        "ServiceTags": [
            "secure=false",
            "contextPath=/auth"
        ],
        "Type": "http",
        "Definition": {},
        "CreateIndex": 0,
        "ModifyIndex": 0
    }
}

你可能感兴趣的:(consul)