Allow to set success_before_passing and failures_before_critical via agent endpoint #7764
Labels
theme/operator-usability
Replaces UX. Anything related to making things easier for the practitioner
theme/service-metadata
Anything related to management/tracking of service metadata
type/enhancement
Proposed improvement or new feature
Please search the existing issues for relevant feature requests, and use the reaction feature (https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to add upvotes to pre-existing requests.
Feature Description
Consul Agent Endpoint
/v1/check/register
and/v1/service/register
should acceptsuccess_before_passing
andfailures_before_critical
in the payload. Right now (consul 1.7.2) it returns HTTP 400 and does not recognise these fields.Use Case(s)
With system that relies on the agent endpoint to register services & checks on startup and doesn't want to use a configuration file on the agent side, this feature is really a big help.
For example our system is using a
discovery
process, when the application is doing some preparation, gather host's information before sending the request to consul agent for service registration.The text was updated successfully, but these errors were encountered: