open-consul/agent/structs
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
..
acl.go acl: adding a new mesh resource 2021-09-03 09:12:03 -04:00
acl_cache.go
acl_cache_test.go
acl_legacy.go
acl_legacy_test.go
acl_oss.go agent/structs: add a bunch more EnterpriseMeta helper functions to help with partitioning (#10669) 2021-07-22 13:20:45 -05:00
acl_test.go
auto_encrypt.go
autopilot.go
autopilot_oss.go
catalog.go agent: ensure that most agent behavior correctly respects partition configuration (#10880) 2021-08-19 15:09:42 -05:00
catalog_oss.go replumbing a bunch of api and agent structs for partitions (#10681) 2021-07-22 14:33:22 -05:00
check_definition.go Add failures_before_warning to checks (#10969) 2021-09-14 12:47:52 -04:00
check_definition_test.go
check_type.go Add failures_before_warning to checks (#10969) 2021-09-14 12:47:52 -04:00
config_entry.go Sync enterprise changes to oss (#10994) 2021-09-08 11:59:30 -04:00
config_entry_discoverychain.go Refactor HTTPHeaderModifiers.MergeDefaults based on feedback 2021-09-10 21:11:00 +01:00
config_entry_discoverychain_oss.go agent/structs: add a bunch more EnterpriseMeta helper functions to help with partitioning (#10669) 2021-07-22 13:20:45 -05:00
config_entry_discoverychain_test.go Fix enterprise discovery chain tests; Fix multi-level split merging 2021-09-10 21:11:00 +01:00
config_entry_gateways.go Include namespace and partition in error messages when validating ingress header manip 2021-09-10 21:11:00 +01:00
config_entry_gateways_test.go Fix enterprise test failures caused by differences in normalizing EnterpriseMeta 2021-09-10 21:11:00 +01:00
config_entry_intentions.go Sync enterprise changes to oss (#10994) 2021-09-08 11:59:30 -04:00
config_entry_intentions_oss.go
config_entry_intentions_test.go Sync enterprise changes to oss (#10994) 2021-09-08 11:59:30 -04:00
config_entry_mesh.go acl: adding a new mesh resource 2021-09-03 09:12:03 -04:00
config_entry_mesh_oss.go
config_entry_oss.go
config_entry_oss_test.go
config_entry_test.go Integration tests for all new header manip features 2021-09-10 21:09:24 +01:00
connect.go
connect_ca.go
connect_ca_test.go
connect_oss.go
connect_proxy_config.go Ingress gateway header manip plumbing 2021-09-10 21:09:24 +01:00
connect_proxy_config_oss.go agent/structs: add a bunch more EnterpriseMeta helper functions to help with partitioning (#10669) 2021-07-22 13:20:45 -05:00
connect_proxy_config_test.go
discovery_chain.go Header manip for split legs plumbing 2021-09-10 21:09:24 +01:00
discovery_chain_oss.go agent/structs: add a bunch more EnterpriseMeta helper functions to help with partitioning (#10669) 2021-07-22 13:20:45 -05:00
errors.go
federation_state.go
identity.go
intention.go Sync enterprise changes to oss (#10994) 2021-09-08 11:59:30 -04:00
intention_oss.go Sync enterprise changes to oss (#10994) 2021-09-08 11:59:30 -04:00
intention_test.go Sync enterprise changes to oss (#10994) 2021-09-08 11:59:30 -04:00
operator.go
prepared_query.go
prepared_query_test.go
protobuf_compat.go
sanitize_oss.go
service_definition.go Add failures_before_warning to checks (#10969) 2021-09-14 12:47:52 -04:00
service_definition_test.go
snapshot.go
structs.go partition dicovery chains (#10983) 2021-09-07 16:29:32 -04:00
structs_filtering_test.go Sync enterprise changes to oss (#10994) 2021-09-08 11:59:30 -04:00
structs_oss.go acl: some acl authz refactors for nodes (#10909) 2021-08-25 13:43:11 -05:00
structs_oss_test.go sync changes to oss files made in enterprise (#10670) 2021-07-22 13:58:08 -05:00
structs_test.go partition dicovery chains (#10983) 2021-09-07 16:29:32 -04:00
system_metadata.go
testing.go
testing_catalog.go partition dicovery chains (#10983) 2021-09-07 16:29:32 -04:00
testing_connect_proxy_config.go oss portion of ent #1069 (#10883) 2021-08-20 12:57:45 -04:00
testing_intention.go Sync enterprise changes to oss (#10994) 2021-09-08 11:59:30 -04:00
testing_service_definition.go
txn.go