hashicorp / consul

Consul is a distributed, highly available, and data center aware solution to connect and configure applications across dynamic, distributed infrastructure.
https://www.consul.io
Other
28.31k stars 4.42k forks source link

Output payload ignored in "critical" TTL update #5389

Open kinnalru opened 5 years ago

kinnalru commented 5 years ago

Ouput payload silently ignored when passed in "critical" TTL update API call.

put "/agent/check/update/:check_id"
with payload:
{
  "Status": "critical",
  "Ouptu": "This is critical error"
}

Result with empty Output section in consul health checks UI. 'passing' and 'warning' works as expected in docs.

If there is previous update with ouput, then it will be displayed in "critical" check after TTL expired as:

TTL expired (last output before timeout follows): PREV PASSING OR WARN OUTPUT
jeromegn commented 4 years ago

We have a service with a "critical" health check status, doesn't show any output.

I'm trying to debug this but I can't. Doing the same HTTP request directly to the service with curl works fine so I don't know how the consul health check is failing.