open-consul/proto/pbservice
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
..
convert.go proto: Add a round trip test for converting types 2020-09-28 18:28:37 -04:00
convert_oss.go proto: convert enterprise meta 2020-10-30 14:34:36 -04:00
convert_oss_test.go proto: convert enterprise meta 2020-10-30 14:34:36 -04:00
convert_pbstruct.go
convert_test.go proto: convert enterprise meta 2020-10-30 14:34:36 -04:00
healthcheck.gen.go Add failures_before_warning to checks (#10969) 2021-09-14 12:47:52 -04:00
healthcheck.pb.binary.go
healthcheck.pb.go Add failures_before_warning to checks (#10969) 2021-09-14 12:47:52 -04:00
healthcheck.proto Add failures_before_warning to checks (#10969) 2021-09-14 12:47:52 -04:00
ids.go replumbing a bunch of api and agent structs for partitions (#10681) 2021-07-22 14:33:22 -05:00
ids_test.go replumbing a bunch of api and agent structs for partitions (#10681) 2021-07-22 14:33:22 -05:00
node.gen.go replumbing a bunch of api and agent structs for partitions (#10681) 2021-07-22 14:33:22 -05:00
node.pb.binary.go
node.pb.go deps: upgrade gogo-protobuf to v1.3.2 (#10813) 2021-08-12 14:05:46 -04:00
node.proto replumbing a bunch of api and agent structs for partitions (#10681) 2021-07-22 14:33:22 -05:00
service.gen.go oss portion of ent #1069 (#10883) 2021-08-20 12:57:45 -04:00
service.pb.binary.go Replace TransparentProxy bool with ProxyMode 2021-04-12 09:35:14 -06:00
service.pb.go oss portion of ent #1069 (#10883) 2021-08-20 12:57:45 -04:00
service.proto oss portion of ent #1069 (#10883) 2021-08-20 12:57:45 -04:00