{"action":"created","issue":{"url":"https://api.github.com/repos/weaveworks/discovery/issues/2","labels_url":"https://api.github.com/repos/weaveworks/discovery/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/weaveworks/discovery/issues/2/comments","events_url":"https://api.github.com/repos/weaveworks/discovery/issues/2/events","html_url":"https://github.com/weaveworks/discovery/issues/2","id":105196804,"number":2,"title":"Discovery should monitor the Weave container","user":{"login":"inercia","id":1841612,"avatar_url":"https://avatars.githubusercontent.com/u/1841612?v=3","gravatar_id":"","url":"https://api.github.com/users/inercia","html_url":"https://github.com/inercia","followers_url":"https://api.github.com/users/inercia/followers","following_url":"https://api.github.com/users/inercia/following{/other_user}","gists_url":"https://api.github.com/users/inercia/gists{/gist_id}","starred_url":"https://api.github.com/users/inercia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inercia/subscriptions","organizations_url":"https://api.github.com/users/inercia/orgs","repos_url":"https://api.github.com/users/inercia/repos","events_url":"https://api.github.com/users/inercia/events{/privacy}","received_events_url":"https://api.github.com/users/inercia/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-07T11:10:40Z","updated_at":"2015-09-07T11:18:47Z","closed_at":null,"body":"When using the local Weave router, Discovery should listen for events on the `weave` container. If the container disappears, it should _remove_ the router's IP from the discovery backend."},"comment":{"url":"https://api.github.com/repos/weaveworks/discovery/issues/comments/138273619","html_url":"https://github.com/weaveworks/discovery/issues/2#issuecomment-138273619","issue_url":"https://api.github.com/repos/weaveworks/discovery/issues/2","id":138273619,"user":{"login":"inercia","id":1841612,"avatar_url":"https://avatars.githubusercontent.com/u/1841612?v=3","gravatar_id":"","url":"https://api.github.com/users/inercia","html_url":"https://github.com/inercia","followers_url":"https://api.github.com/users/inercia/followers","following_url":"https://api.github.com/users/inercia/following{/other_user}","gists_url":"https://api.github.com/users/inercia/gists{/gist_id}","starred_url":"https://api.github.com/users/inercia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inercia/subscriptions","organizations_url":"https://api.github.com/users/inercia/orgs","repos_url":"https://api.github.com/users/inercia/repos","events_url":"https://api.github.com/users/inercia/events{/privacy}","received_events_url":"https://api.github.com/users/inercia/received_events","type":"User","site_admin":false},"created_at":"2015-09-07T11:18:47Z","updated_at":"2015-09-07T11:18:47Z","body":"We could implement this in two different ways:\r\n\r\n* listening for Docker events (this would probably require some privileges)\r\n* we must periodically refresh the registration in the backend, so we could do a `GET /status` from the router we are advertising before the refresh. Tthis would also work for remote routers...\r\n\r\nWhat should we do if the router is dead? Discovery should probably exit...\r\n\r\n"}}