Allow Prepared Queries to return Critical Nodes
Open
theme/api
theme/prepared-query
type/enhancement
- Dominant language
- Go
- Stars
- 30.1k
- Forks
- 4.6k
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 43
Description
#### Feature Description
Allow for a new parameter of prepared query which will allow the query to return failing nodes.
#### Use Case(s)
We are looking at changing our usage of Consul to move from the `/health/service` endpoint to using prepared queries. Occasionally, we would like to use a service in a `critical` status as the final fallback if there are no available services in a passing or warning state. Right now the service endpoint will return those nodes, we would like to be able to replicate that behavior with a prepared query.
Ideally, the failing nodes would only be returned as the last ones.
Contributor guide
Assessment
This issue has not been assessed yet.