-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(admin) add /upstreams/:upstream_id/health endpoint
This adds `/upstreams/:upstream_id/health`, an endpoint to report health of the targets of an upstream. It returns the same contents of `/upstreams/:upstream_id/targets`, with the addition of a `"health"` field, which may return one of four values: * `"DNS_ERROR"` - target failed to be inserted into the load balancer (because of DNS resolution error), target is therefore **not** in use by the load balancer * `"HEALTHCHECKS_OFF"` - healthchecks are disabled, target is in use by the load balancer * `"HEALTHY"` - healthchecks are enabled, target is considered healthy by healthchecks, target is in use by the load balancer * `"UNHEALTHY"` - healthchecks are enabled, target is considered unhealthy by healthchecks, target is in **not** in use by the load balancer Note that if DNS for the target did not resolve, it will display as `"not in balancer"` regardless of healthchecks being enabled or disabled.
- Loading branch information
Showing
2 changed files
with
305 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.