{"action":"created","issue":{"url":"https://api.github.com/repos/apache/incubator-brooklyn/issues/959","labels_url":"https://api.github.com/repos/apache/incubator-brooklyn/issues/959/labels{/name}","comments_url":"https://api.github.com/repos/apache/incubator-brooklyn/issues/959/comments","events_url":"https://api.github.com/repos/apache/incubator-brooklyn/issues/959/events","html_url":"https://github.com/apache/incubator-brooklyn/pull/959","id":111616802,"number":959,"title":"Update Tomcat's webapp.url sensor to show the public hostname","user":{"login":"bostko","id":1595054,"avatar_url":"https://avatars.githubusercontent.com/u/1595054?v=3","gravatar_id":"","url":"https://api.github.com/users/bostko","html_url":"https://github.com/bostko","followers_url":"https://api.github.com/users/bostko/followers","following_url":"https://api.github.com/users/bostko/following{/other_user}","gists_url":"https://api.github.com/users/bostko/gists{/gist_id}","starred_url":"https://api.github.com/users/bostko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bostko/subscriptions","organizations_url":"https://api.github.com/users/bostko/orgs","repos_url":"https://api.github.com/users/bostko/repos","events_url":"https://api.github.com/users/bostko/events{/privacy}","received_events_url":"https://api.github.com/users/bostko/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-15T13:29:41Z","updated_at":"2015-10-27T16:36:28Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/incubator-brooklyn/pulls/959","html_url":"https://github.com/apache/incubator-brooklyn/pull/959","diff_url":"https://github.com/apache/incubator-brooklyn/pull/959.diff","patch_url":"https://github.com/apache/incubator-brooklyn/pull/959.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/apache/incubator-brooklyn/issues/comments/151561676","html_url":"https://github.com/apache/incubator-brooklyn/pull/959#issuecomment-151561676","issue_url":"https://api.github.com/repos/apache/incubator-brooklyn/issues/959","id":151561676,"user":{"login":"neykov","id":3612111,"avatar_url":"https://avatars.githubusercontent.com/u/3612111?v=3","gravatar_id":"","url":"https://api.github.com/users/neykov","html_url":"https://github.com/neykov","followers_url":"https://api.github.com/users/neykov/followers","following_url":"https://api.github.com/users/neykov/following{/other_user}","gists_url":"https://api.github.com/users/neykov/gists{/gist_id}","starred_url":"https://api.github.com/users/neykov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neykov/subscriptions","organizations_url":"https://api.github.com/users/neykov/orgs","repos_url":"https://api.github.com/users/neykov/repos","events_url":"https://api.github.com/users/neykov/events{/privacy}","received_events_url":"https://api.github.com/users/neykov/received_events","type":"User","site_admin":false},"created_at":"2015-10-27T16:36:28Z","updated_at":"2015-10-27T16:36:28Z","body":"Don't fully agree @ahgittin, `main.uri` should be the externally accessible URL, where sensors will poll for values, will be given to users to connect to. Whether you need an external or internal url *between* entities is known at composition time only. If doing it in yaml you'll want to override the default sensor. Java group entities usually assume local network and directly use the subnet sensor (see [this](https://github.com/apache/incubator-brooklyn/blob/master/software/nosql/src/main/java/org/apache/brooklyn/entity/nosql/riak/RiakClusterImpl.java#L231-L232) for example).\r\n\r\nSo until we have a principled way to handle this I'd say keep the public IP."}}