List of API member status codes and what they mean?

275 views
Skip to first unread message

Sam Barham

unread,
Jun 30, 2016, 8:43:05 PM6/30/16
to Consul
I'm wanting to use the /v1/agent/members API to determine the status of my Consul nodes.  It returns a Status for each member, but that status is a number and I can't see any documentation on what number corresponds to what status.  I'm pretty sure Status=1 means alive, but what other possible statuses are there and what are their numbers?

James Phillips

unread,
Jun 30, 2016, 10:14:54 PM6/30/16
to consu...@googlegroups.com
Hi Sam,

That's kind of a low level endpoint so apologies that isn't documented more thoroughly. Here's the enumeration that is used for the status:


-- James

On Thu, Jun 30, 2016 at 5:43 PM, Sam Barham <s.ba...@adinstruments.com> wrote:
I'm wanting to use the /v1/agent/members API to determine the status of my Consul nodes.  It returns a Status for each member, but that status is a number and I can't see any documentation on what number corresponds to what status.  I'm pretty sure Status=1 means alive, but what other possible statuses are there and what are their numbers?

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/hashicorp/consul/issues
IRC: #consul on Freenode
---
You received this message because you are subscribed to the Google Groups "Consul" group.
To unsubscribe from this group and stop receiving emails from it, send an email to consul-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/consul-tool/3e350c2e-44f1-4d5c-ac71-361982038f18%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Sam Barham

unread,
Jun 30, 2016, 10:20:19 PM6/30/16
to Consul
Thanks for that.  Another similar hole is there appears to be no mention within the documentation of the possible Status values, both for Consul and Nomad.  E.g.  Nomad Servers can be 'alive' or 'left', Consul members can be 'alive', 'left' or 'failed'.  I've managed to find them by trawling the code, but it'd be useful info within the standard documentation
Reply all
Reply to author
Forward
0 new messages