Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.

Add support for "Get local service health" #23

Open
superflav opened this issue Dec 22, 2020 · 2 comments
Open

Add support for "Get local service health" #23

superflav opened this issue Dec 22, 2020 · 2 comments

Comments

@superflav
Copy link

Being able to get a service's aggregated health status on a given node by service_name or service_id at the following endpoints is super useful, but not currently supported in python-consul2. Would be a great addition to this library.

/agent/health/service/name/:service_name
/agent/health/service/id/:service_id

Consul documentation on these endpoints:

https://www.consul.io/api-docs/agent/service#get-local-service-health

@poppyred
Copy link
Owner

@superflav Thank you for your issues. I will check and implement all the new functions as soon as possible.

@monkeyman192
Copy link

I am just looking at needing this kind of functionality as well.
I realised it can be hacked by doing something like c.http.get(CB.json(), path='/v1/agent/health/service/name/XXX'), however it's very hacky, and this request also raises a 503 when one of the services is down...
Anyway, adding a +1 to wanting this functionality!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants