{"action":"created","issue":{"url":"https://api.github.com/repos/gliderlabs/registrator/issues/149","labels_url":"https://api.github.com/repos/gliderlabs/registrator/issues/149/labels{/name}","comments_url":"https://api.github.com/repos/gliderlabs/registrator/issues/149/comments","events_url":"https://api.github.com/repos/gliderlabs/registrator/issues/149/events","html_url":"https://github.com/gliderlabs/registrator/pull/149","id":66767467,"number":149,"title":"Add support for Consul TTLs and multiple checks.","user":{"login":"burnison","id":3445611,"avatar_url":"https://avatars.githubusercontent.com/u/3445611?v=3","gravatar_id":"","url":"https://api.github.com/users/burnison","html_url":"https://github.com/burnison","followers_url":"https://api.github.com/users/burnison/followers","following_url":"https://api.github.com/users/burnison/following{/other_user}","gists_url":"https://api.github.com/users/burnison/gists{/gist_id}","starred_url":"https://api.github.com/users/burnison/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/burnison/subscriptions","organizations_url":"https://api.github.com/users/burnison/orgs","repos_url":"https://api.github.com/users/burnison/repos","events_url":"https://api.github.com/users/burnison/events{/privacy}","received_events_url":"https://api.github.com/users/burnison/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-07T03:46:40Z","updated_at":"2015-08-20T14:07:38Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/gliderlabs/registrator/pulls/149","html_url":"https://github.com/gliderlabs/registrator/pull/149","diff_url":"https://github.com/gliderlabs/registrator/pull/149.diff","patch_url":"https://github.com/gliderlabs/registrator/pull/149.patch"},"body":"This may potentially close #57, depending on how the original author wishes to\r\nsolve the problem. On each refresh, Registrator will write the current timestamp into\r\nthe check's notes.\r\n\r\nFurther, this change also introduces the ability to have multiple health checks\r\ntypes. For example, a TTL may be used in conjunction with a script. This allows\r\nfor a more reliable service discovery mechanism, reducing the risk of services\r\nreclaiming old ports. These changes also open the door for a simple, native HTTP\r\ncheck integration with Consul. Because Registrator doesn't currently have an API\r\nto store the upstream state of the service (i.e. remote check IDs), the Consul\r\nadapter filters the defined checks into an ordered list, which it then\r\ncorrelates to the check ID in Consul based on index. Consul's API implementation\r\nsuggests this is safe; however, this behaviour is not documented.\r\n\r\nSadly, this breaks compatibility with Consul 0.4.x, which only supported one\r\nservice check per service."},"comment":{"url":"https://api.github.com/repos/gliderlabs/registrator/issues/comments/133022050","html_url":"https://github.com/gliderlabs/registrator/pull/149#issuecomment-133022050","issue_url":"https://api.github.com/repos/gliderlabs/registrator/issues/149","id":133022050,"user":{"login":"LordFPL","id":2177350,"avatar_url":"https://avatars.githubusercontent.com/u/2177350?v=3","gravatar_id":"","url":"https://api.github.com/users/LordFPL","html_url":"https://github.com/LordFPL","followers_url":"https://api.github.com/users/LordFPL/followers","following_url":"https://api.github.com/users/LordFPL/following{/other_user}","gists_url":"https://api.github.com/users/LordFPL/gists{/gist_id}","starred_url":"https://api.github.com/users/LordFPL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LordFPL/subscriptions","organizations_url":"https://api.github.com/users/LordFPL/orgs","repos_url":"https://api.github.com/users/LordFPL/repos","events_url":"https://api.github.com/users/LordFPL/events{/privacy}","received_events_url":"https://api.github.com/users/LordFPL/received_events","type":"User","site_admin":false},"created_at":"2015-08-20T14:07:38Z","updated_at":"2015-08-20T14:07:38Z","body":"+1"}}