Skip to content
Skip to Content
Coder Docs

Debug Info Deployment Health

GET
/api/v2/debug/health

Authorization

CoderSessionToken
headerCoder-Session-Token<token>

Query Parameters

force?boolean

Force a healthcheck to run

Response Body

OK

application/json
  1. response
access_url?
coder_version?string

The Coder version of the server that the report was generated on.

database?
derp?
healthy?boolean

Healthy is true if the report returns no errors. Deprecated: use Severity instead

provisioner_daemons?
severity?string

Severity indicates the status of Coder health.

Value in"ok""warning""error"
time?string

Time is the time the report was generated at.

Formatdate-time
websocket?
workspace_proxy?

The samples read CODER_URL and CODER_SESSION_TOKEN: set up your environment.

curl -X GET \	"$CODER_URL/api/v2/debug/health" \	-H "Coder-Session-Token: $CODER_SESSION_TOKEN"
Example Response200
{  "access_url": {    "access_url": "string",    "dismissed": true,    "error": "string",    "healthy": true,    "healthz_response": "string",    "reachable": true,    "severity": "ok",    "status_code": 0,    "warnings": [      {        "code": "EUNKNOWN",        "message": "string"      }    ]  },  "coder_version": "string",  "database": {    "dismissed": true,    "error": "string",    "healthy": true,    "latency": "string",    "latency_ms": 0,    "reachable": true,    "severity": "ok",    "threshold_ms": 0,    "warnings": [      {        "code": "EUNKNOWN",        "message": "string"      }    ]  },  "derp": {    "dismissed": true,    "error": "string",    "healthy": true,    "netcheck": {      "captivePortal": "string",      "globalV4": "string",      "globalV6": "string",      "icmpv4": true,      "ipv4": true,      "ipv4CanSend": true,      "ipv6": true,      "ipv6CanSend": true,      "mappingVariesByDestIP": "string",      "oshasIPv6": true,      "pcp": "string",      "pmp": "string",      "preferredDERP": 0,      "regionLatency": {        "property1": 0,        "property2": 0      },      "regionV4Latency": {        "property1": 0,        "property2": 0      },      "regionV6Latency": {        "property1": 0,        "property2": 0      },      "udp": true,      "upnP": "string"    },    "netcheck_err": "string",    "netcheck_logs": [      "string"    ],    "regions": {      "property1": {        "error": "string",        "healthy": true,        "node_reports": [          {            "can_exchange_messages": true,            "client_errs": [              [                "string"              ]            ],            "client_logs": [              [                "string"              ]            ],            "error": "string",            "healthy": true,            "node": {              "canPort80": true,              "certName": "string",              "derpport": 0,              "forceHTTP": true,              "hostName": "string",              "insecureForTests": true,              "ipv4": "string",              "ipv6": "string",              "name": "string",              "regionID": 0,              "stunonly": true,              "stunport": 0,              "stuntestIP": "string"            },            "node_info": {              "tokenBucketBytesBurst": 0,              "tokenBucketBytesPerSecond": 0            },            "round_trip_ping": "string",            "round_trip_ping_ms": 0,            "severity": "ok",            "stun": {              "canSTUN": true,              "enabled": true,              "error": "string"            },            "uses_websocket": true,            "warnings": [              {                "code": "EUNKNOWN",                "message": "string"              }            ]          }        ],        "region": {          "avoid": true,          "embeddedRelay": true,          "nodes": [            {              "canPort80": true,              "certName": "string",              "derpport": 0,              "forceHTTP": true,              "hostName": "string",              "insecureForTests": true,              "ipv4": "string",              "ipv6": "string",              "name": "string",              "regionID": 0,              "stunonly": true,              "stunport": 0,              "stuntestIP": "string"            }          ],          "regionCode": "string",          "regionID": 0,          "regionName": "string"        },        "severity": "ok",        "warnings": [          {            "code": "EUNKNOWN",            "message": "string"          }        ]      },      "property2": {        "error": "string",        "healthy": true,        "node_reports": [          {            "can_exchange_messages": true,            "client_errs": [              [                "string"              ]            ],            "client_logs": [              [                "string"              ]            ],            "error": "string",            "healthy": true,            "node": {              "canPort80": true,              "certName": "string",              "derpport": 0,              "forceHTTP": true,              "hostName": "string",              "insecureForTests": true,              "ipv4": "string",              "ipv6": "string",              "name": "string",              "regionID": 0,              "stunonly": true,              "stunport": 0,              "stuntestIP": "string"            },            "node_info": {              "tokenBucketBytesBurst": 0,              "tokenBucketBytesPerSecond": 0            },            "round_trip_ping": "string",            "round_trip_ping_ms": 0,            "severity": "ok",            "stun": {              "canSTUN": true,              "enabled": true,              "error": "string"            },            "uses_websocket": true,            "warnings": [              {                "code": "EUNKNOWN",                "message": "string"              }            ]          }        ],        "region": {          "avoid": true,          "embeddedRelay": true,          "nodes": [            {              "canPort80": true,              "certName": "string",              "derpport": 0,              "forceHTTP": true,              "hostName": "string",              "insecureForTests": true,              "ipv4": "string",              "ipv6": "string",              "name": "string",              "regionID": 0,              "stunonly": true,              "stunport": 0,              "stuntestIP": "string"            }          ],          "regionCode": "string",          "regionID": 0,          "regionName": "string"        },        "severity": "ok",        "warnings": [          {            "code": "EUNKNOWN",            "message": "string"          }        ]      }    },    "severity": "ok",    "warnings": [      {        "code": "EUNKNOWN",        "message": "string"      }    ]  },  "healthy": true,  "provisioner_daemons": {    "dismissed": true,    "error": "string",    "items": [      {        "provisioner_daemon": {          "api_version": "string",          "created_at": "2019-08-24T14:15:22Z",          "current_job": {            "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",            "status": "pending",            "template_display_name": "string",            "template_icon": "string",            "template_name": "string"          },          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",          "key_id": "1e779c8a-6786-4c89-b7c3-a6666f5fd6b5",          "key_name": "string",          "last_seen_at": "2019-08-24T14:15:22Z",          "name": "string",          "organization_id": "7c60d51f-b44e-4682-87d6-449835ea4de6",          "previous_job": {            "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",            "status": "pending",            "template_display_name": "string",            "template_icon": "string",            "template_name": "string"          },          "provisioners": [            "string"          ],          "status": "offline",          "tags": {            "property1": "string",            "property2": "string"          },          "version": "string"        },        "warnings": [          {            "code": "EUNKNOWN",            "message": "string"          }        ]      }    ],    "severity": "ok",    "warnings": [      {        "code": "EUNKNOWN",        "message": "string"      }    ]  },  "severity": "ok",  "time": "2019-08-24T14:15:22Z",  "websocket": {    "body": "string",    "code": 0,    "dismissed": true,    "error": "string",    "healthy": true,    "severity": "ok",    "warnings": [      {        "code": "EUNKNOWN",        "message": "string"      }    ]  },  "workspace_proxy": {    "dismissed": true,    "error": "string",    "healthy": true,    "severity": "ok",    "warnings": [      {        "code": "EUNKNOWN",        "message": "string"      }    ],    "workspace_proxies": {      "regions": [        {          "created_at": "2019-08-24T14:15:22Z",          "deleted": true,          "derp_enabled": true,          "derp_only": true,          "display_name": "string",          "healthy": true,          "icon_url": "string",          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",          "name": "string",          "path_app_url": "string",          "status": {            "checked_at": "2019-08-24T14:15:22Z",            "report": {              "errors": [                "string"              ],              "warnings": [                "string"              ]            },            "status": "ok"          },          "updated_at": "2019-08-24T14:15:22Z",          "version": "string",          "wildcard_hostname": "string"        }      ]    }  }}