open-consul/build-support/scripts
Daniel Nephin 44d91ea56f
Add failures_before_warning to checks (#10969)
Signed-off-by: Jakub Sokołowski <jakub@status.im>

* agent: add failures_before_warning setting

The new setting allows users to specify the number of check failures
that have to happen before a service status us updated to be `warning`.
This allows for more visibility for detected issues without creating
alerts and pinging administrators. Unlike the previous behavior, which
caused the service status to not update until it reached the configured
`failures_before_critical` setting, now Consul updates the Web UI view
with the `warning` state and the output of the service check when
`failures_before_warning` is breached.

The default value of `FailuresBeforeWarning` is the same as the value of
`FailuresBeforeCritical`, which allows for retaining the previous default
behavior of not triggering a warning.

When `FailuresBeforeWarning` is set to a value higher than that of
`FailuresBeforeCritical it has no effect as `FailuresBeforeCritical`
takes precedence.

Resolves: https://github.com/hashicorp/consul/issues/10680

Signed-off-by: Jakub Sokołowski <jakub@status.im>

Co-authored-by: Jakub Sokołowski <jakub@status.im>
2021-09-14 12:47:52 -04:00
..
build-docker.sh Remove old UI, option to use it, and its build processes 2019-04-12 09:02:27 -06:00
build-local.sh Quote $@ when passing around 2018-06-18 14:53:50 -04:00
envoy-library-references.sh xds: ensure that all envoyproxy/go-control-plane protobuf symbols are linked into the final binary (#10131) 2021-04-29 14:58:26 -05:00
functions.sh PR Updates 2018-06-19 12:47:58 -04:00
proto-gen.sh Add failures_before_warning to checks (#10969) 2021-09-14 12:47:52 -04:00
release.sh Allow for building pre-releases/rcs/betas 2018-06-18 17:06:38 -04:00
test-flake.sh Replace use of 'sane' where appropriate 2021-07-02 12:18:46 -04:00
version.sh Quote $@ when passing around 2018-06-18 14:53:50 -04:00