How to filter out failed nodes from /catalog/service REST call

I am using the consul REST API to pull service data using the /catalog/service endpoint. I would like to understand how to filter out the entries of nodes that have “failed” according to consul members. This information doesn’t appear in the service meta in the response, and I don’t see how to look it up anywhere with the API.


Try this API instead of /catalog/service:

That’s for health checks, which I am not using currently. I am referring to finding out which nodes have failed. /catalog/nodes also does not appear to show this information.

I can just grok consul members from bash but am surprised to see that this doesn’t seem to be in the REST API anywhere.