-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warning healthcheck should also be passing #2452
Comments
I discovered the same thing today when testing node and service checks resulting in DNS queries seem to give a list of "non-failing" services (those in So, in order for a health query to give results similar to a DNS query, I'd need to stop using the "passing" param, then add extra filtering logic in my applications to filter-out services in As @takeda said, it would be helpful if a param (or params) existed to include "non-failing" services... ie. both |
This is closely related to #802. |
+1 for takeda's comment. We're using consul-template and it's causing us some grief when a "degraded" node gets deconfigured from a cluster because the service status on that node has slipped to 'warning'. |
Hi @takeda, @bdclark, @bluebob, and others, If I understand correctly, you were looking for a way to get a list of nodes or services which are in either the As of version 1.5, the node and service health endpoints support filtering expressions to filter the query's results based on field values (like This functionality was implemented in this PR. For example, the below should return all non-critical services:
|
Currently
warning
health checks are not listed when querying for nodes inpassing
state.This behavior makes the
warning
state somewhat useless, because in order to also get nodes inwarning
state one has to query for it explicitly.Perhaps new query state should be created e.g.
passing-only
which would have the old behavior and havepassing
to include bothpassing
andwarnng
.The text was updated successfully, but these errors were encountered: