{"action":"created","issue":{"url":"https://api.github.com/repos/gliderlabs/registrator/issues/204","labels_url":"https://api.github.com/repos/gliderlabs/registrator/issues/204/labels{/name}","comments_url":"https://api.github.com/repos/gliderlabs/registrator/issues/204/comments","events_url":"https://api.github.com/repos/gliderlabs/registrator/issues/204/events","html_url":"https://github.com/gliderlabs/registrator/issues/204","id":94508050,"number":204,"title":"Question about etcd backend","user":{"login":"jbkc85","id":215878,"avatar_url":"https://avatars.githubusercontent.com/u/215878?v=3","gravatar_id":"","url":"https://api.github.com/users/jbkc85","html_url":"https://github.com/jbkc85","followers_url":"https://api.github.com/users/jbkc85/followers","following_url":"https://api.github.com/users/jbkc85/following{/other_user}","gists_url":"https://api.github.com/users/jbkc85/gists{/gist_id}","starred_url":"https://api.github.com/users/jbkc85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbkc85/subscriptions","organizations_url":"https://api.github.com/users/jbkc85/orgs","repos_url":"https://api.github.com/users/jbkc85/repos","events_url":"https://api.github.com/users/jbkc85/events{/privacy}","received_events_url":"https://api.github.com/users/jbkc85/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-07-11T21:13:57Z","updated_at":"2015-09-15T16:06:39Z","closed_at":"2015-08-21T21:20:54Z","body":"To whom it may concern,\r\n\r\nIs there a reason you are storing just the dockerip:dockerport in the etcd key value store instead of the entire service information like you do with Consul?  I made a few modifications to the etcd.go file to store the service in JSON and was wondering if there was a specific reason that wasn't being done by default.\r\n\r\nExample in running off of a locally hosted CoreOS cluster on Vagrant:\r\n\r\nCurrent Behavior:\r\ncore@core-01 ~/registrator $ etcdctl get /original/cAdvisor/core-01:cadvisor:8080\r\n10.1.0.18:8080\r\n\r\nModified Behavior:\r\ncore@core-01 ~ $ etcdctl get /services/cAdvisor/core-01:cadvisor:8080\r\n{\"ID\":\"core-01:cadvisor:8080\",\"Name\":\"cAdvisor\",\"Port\":8080,\"IP\":\"10.1.0.16\",\"Tags\":[\"version=1.4.3\",\"maintainer=jbkc85@gmail.com\"],\"Attrs\":{},\"TTL\":0,\"Origin\":{\"HostPort\":\"8080\",\"HostIP\":\"10.1.0.16\",\"ExposedPort\":\"8080\",\"ExposedIP\":\"10.1.0.17\",\"PortType\":\"tcp\",\"ContainerHostname\":\"a8b0c13e2f1f\",\"ContainerID\":\"a8b0c13e2f1ff21b2d2b29c11805dd22fd008dbea96b700f5ff5a0e08e826d0f\"}}\r\n\r\nIf you find this useful let me know and I can initiate a pull request!\r\n\r\nThanks,\r\nJason Cameron\r\n"},"comment":{"url":"https://api.github.com/repos/gliderlabs/registrator/issues/comments/140445232","html_url":"https://github.com/gliderlabs/registrator/issues/204#issuecomment-140445232","issue_url":"https://api.github.com/repos/gliderlabs/registrator/issues/204","id":140445232,"user":{"login":"jbkc85","id":215878,"avatar_url":"https://avatars.githubusercontent.com/u/215878?v=3","gravatar_id":"","url":"https://api.github.com/users/jbkc85","html_url":"https://github.com/jbkc85","followers_url":"https://api.github.com/users/jbkc85/followers","following_url":"https://api.github.com/users/jbkc85/following{/other_user}","gists_url":"https://api.github.com/users/jbkc85/gists{/gist_id}","starred_url":"https://api.github.com/users/jbkc85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbkc85/subscriptions","organizations_url":"https://api.github.com/users/jbkc85/orgs","repos_url":"https://api.github.com/users/jbkc85/repos","events_url":"https://api.github.com/users/jbkc85/events{/privacy}","received_events_url":"https://api.github.com/users/jbkc85/received_events","type":"User","site_admin":false},"created_at":"2015-09-15T16:06:39Z","updated_at":"2015-09-15T16:06:39Z","body":"@klausenbusk Yes, I believe that is the expected behavior.  Right now etcd simply stores the IP and Port.  You can always modify that behavior to store the entirety of the service metadata as pointed out above, but it could potentially break other programs that utilize registrar in the process (if you are using any of them)."}}