WeAreFarmGeek/diplomat

Options for health endpoint are missing / incorrect

defsprite opened this issue · 4 comments

According to https://www.consul.io/docs/agent/http/health.html the possible parameters for /v1/health/service/:service are:

  • dc (implemented correctly)
  • near (missing)
  • passing (implemented as state, which does not seem to work)

I am trying to filter only healthy nodes for a service, which does not seem to work without client-side post-processing.

Am I missing something? Is this version specific?

I just saw this issue. I recently created a PR to fix another issue I found with the health endpoint that returns Hashes instead of OpenStructs as stated in the documentation. I'll add this to the PR as well.

This should be resolved via: 114

PR has been merged.

This is great news! Thanks @taharah