-
Notifications
You must be signed in to change notification settings - Fork 136
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
Make health check names user-configurable #193
Comments
I'm open to the idea of having user-configurable naming of the checks but the config syntax should be such that it's both backwards compatible and optional. So maybe if we were to do that we would make the human-readable health check name defined like so: "services": [
{
"name": "example",
"port": 3306,
"health": "/usr/bin/curl --fail -s http://localhost/nginx-health",
"checkId": "Example Health Status",
"poll": 10,
"ttl": 25
}
], The other question is what would this look like if we weren't using Consul but etcd instead? I'd like to avoid any config syntax that isn't portable across backends. |
Retitled this issue and giving it the |
Marking this as a 2.x-compatible enhancement. |
Implemented in #316 |
This multiple-health checks feature has undergone some internal review and we've decided to cut it, as the semantics of multiple health checks for a service don't really make sense given that we can only report to Consul once. That makes this a non-blocking issue for v3.0. Proposed syntax: jobs: [
{
name: "myJob",
health: {
name: "myJobCheck2",
exec: "/bin/myCheck",
interval: 3,
ttl: 5
}
}
] |
I'm going to run a local consul agent to be able to register a containers as separate nodes in consul. But would like to not register a checks in Consul with
CheckID
like<service>-<hostname>
in this case. As far I understand it's not possible for the moment. But it would be great to have this in the nearest releases.And even better - to have a human readable name for health checks. So instead of having on Consul something like:
It would be great to define health check in this way:
And finally get these from Consul:
The text was updated successfully, but these errors were encountered: