{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/nomad/issues/551","labels_url":"https://api.github.com/repos/hashicorp/nomad/issues/551/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/nomad/issues/551/comments","events_url":"https://api.github.com/repos/hashicorp/nomad/issues/551/events","html_url":"https://github.com/hashicorp/nomad/issues/551","id":121315024,"number":551,"title":"Should each check in nomad result in two checks in Consul?","user":{"login":"dontrebootme","id":1504683,"avatar_url":"https://avatars.githubusercontent.com/u/1504683?v=3","gravatar_id":"","url":"https://api.github.com/users/dontrebootme","html_url":"https://github.com/dontrebootme","followers_url":"https://api.github.com/users/dontrebootme/followers","following_url":"https://api.github.com/users/dontrebootme/following{/other_user}","gists_url":"https://api.github.com/users/dontrebootme/gists{/gist_id}","starred_url":"https://api.github.com/users/dontrebootme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dontrebootme/subscriptions","organizations_url":"https://api.github.com/users/dontrebootme/orgs","repos_url":"https://api.github.com/users/dontrebootme/repos","events_url":"https://api.github.com/users/dontrebootme/events{/privacy}","received_events_url":"https://api.github.com/users/dontrebootme/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-09T18:57:28Z","updated_at":"2015-12-09T19:44:21Z","closed_at":null,"body":"When I spin up 50 service tasks in nomad, I see 100 services in Consul. It appears that every nomad service results in the service check itself and the serf health check. Is this expected?\r\n\r\n<img width=\"555\" alt=\"screen shot 2015-12-09 at 10 56 55 am\" src=\"https://cloud.githubusercontent.com/assets/1504683/11695368/a02110ae-9e63-11e5-94cd-a30d80b22edd.png\">\r\n<img width=\"605\" alt=\"screen shot 2015-12-09 at 10 56 59 am\" src=\"https://cloud.githubusercontent.com/assets/1504683/11695369/a0268f48-9e63-11e5-8e76-fddb485d7bd1.png\">\r\n"},"comment":{"url":"https://api.github.com/repos/hashicorp/nomad/issues/comments/163369526","html_url":"https://github.com/hashicorp/nomad/issues/551#issuecomment-163369526","issue_url":"https://api.github.com/repos/hashicorp/nomad/issues/551","id":163369526,"user":{"login":"ryanuber","id":1642288,"avatar_url":"https://avatars.githubusercontent.com/u/1642288?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanuber","html_url":"https://github.com/ryanuber","followers_url":"https://api.github.com/users/ryanuber/followers","following_url":"https://api.github.com/users/ryanuber/following{/other_user}","gists_url":"https://api.github.com/users/ryanuber/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanuber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanuber/subscriptions","organizations_url":"https://api.github.com/users/ryanuber/orgs","repos_url":"https://api.github.com/users/ryanuber/repos","events_url":"https://api.github.com/users/ryanuber/events{/privacy}","received_events_url":"https://api.github.com/users/ryanuber/received_events","type":"User","site_admin":false},"created_at":"2015-12-09T19:44:21Z","updated_at":"2015-12-09T19:44:21Z","body":"Hi @dontrebootme,\r\n\r\nI can see how this is a little confusing in the UI, but let me try to clarify what you are seeing. Each instance of `microbot-web-microbot` has 1 check associated with it, probably checking the health of the running service somehow. However, there are actually 2 checks which affect the overall \"availability\" of each instance, meaning whether or not Consul views the result as \"healthy\". Each node-level check will affect the health status of every service on the node, including \"serfHealth\". So, if serfHealth OR the individual `microbot-web-microbot` health check fail, then the service instance will be considered not healthy. The UI seems to be counting the same serfHealth for each instance of your custom service. It isn't that there are actually 2x the number of checks running. This does seem misleading so I'm going to open an issue for the Consul UI. I'll link it back here."}}