hashicorp / hashicorp/consul

Allow Prepared Queries to return Critical Nodes

Open
#4,983 10 comments 1 reaction 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.