{"action":"created","comment":{"url":"https://api.github.com/repos/allegro/marathon-consul/pulls/comments/67730230","id":67730230,"diff_hunk":"@@ -104,42 +104,41 @@ curl -X POST 'http://marathon.service.consul:8080/v2/eventSubscriptions?callback\n \n ### Options\n \n-Argument                    | Default         | Description\n-----------------------------|-----------------|------------------------------------------------------\n-config-file                 |                 | Path to a JSON file to read configuration from. Note: Will override options set earlier on the command line\n-consul-auth                 | `false`         | Use Consul with authentication\n-consul-auth-password        |                 | The basic authentication password\n-consul-auth-username        |                 | The basic authentication username\n-consul-get-services-retry   | `3`             | Number of retries on failure when performing requests to Consul. Each retry uses different cached agent\n-consul-max-agent-failures   | `3`             | Max number of consecutive request failures for agent before removal from cache\n-consul-port                 | `8500`          | Consul port\n-consul-ssl                  | `false`         | Use HTTPS when talking to Consul\n-consul-ssl-ca-cert          |                 | Path to a CA certificate file, containing one or more CA certificates to use to validate the certificate sent by the Consul server to us\n-consul-ssl-cert             |                 | Path to an SSL client certificate to use to authenticate to the Consul server\n-consul-ssl-verify           | `true`          | Verify certificates when connecting via SSL\n-consul-tag                  | `marathon`      | Common tag name added to every service registered in Consul, should be unique for every Marathon-cluster connected to Consul\n-consul-timeout              | `3s`            | Time limit for requests made by the Consul HTTP client. A Timeout of zero means no timeout\n-consul-token                |                 | The Consul ACL token\n-events-queue-size           | `1000`          | Size of events queue\n-listen                      | `:4000`         | Accept connections at this address\n-log-file                    |                 | Save logs to file (e.g.: `/var/log/marathon-consul.log`). If empty logs are published to STDERR\n-log-format                  | `text`          |  Log format: JSON, text\n-log-level                   | `info`          | Log level: panic, fatal, error, warn, info, or debug\n-marathon-location           | `localhost:8080`| Marathon URL\n-marathon-password           |                 | Marathon password for basic auth\n-marathon-protocol           | `http`          | Marathon protocol (http or https)\n-marathon-ssl-verify         | `true`          | Verify certificates when connecting via SSL\n-marathon-timeout            | `30s`           | Time limit for requests made by the Marathon HTTP client. A Timeout of zero means no timeout\n-marathon-username           |                 | Marathon username for basic auth\n-metrics-interval            | `30s`           | Metrics reporting interval\n-metrics-location            |                 | Graphite URL (used when metrics-target is set to graphite)\n-metrics-prefix              | `default`       | Metrics prefix (default is resolved to <hostname>.<app_name>\n-metrics-target              | `stdout`        | Metrics destination stdout or graphite (empty string disables metrics)\n-sync-enabled                | `true`          | Enable Marathon-consul scheduled sync\n-sync-force                  | `false`         | Force leadership-independent Marathon-consul sync (run always)\n-sync-interval               | `15m0s`         | Marathon-consul sync interval\n-sync-leader                 |                 | Marathon cluster-wide node name (defaults to <hostname>:8080), the sync will run only if the specified node is the current Marathon-leader\n-workers-pool-size           | `10`            | Number of concurrent workers processing events\n+Argument               | Default               | Description\n+-----------------------|-----------------------|------------------------------------------------------\n+config-file            |                       | Path to a JSON file to read configuration from. **Note:** Will override options set earlier on the command line. See [example](debian/config.json).\n+consul-auth            | `false`               | Use Consul with authentication\n+consul-auth-password   |                       | The basic authentication password\n+consul-auth-username   |                       | The basic authentication username\n+consul-name-separator  | `.`                   | Separator used to create default service name for Consul\n+consul-port            | `8500`                | Consul port\n+consul-ssl             | `false`               | Use HTTPS when talking to Consul\n+consul-ssl-ca-cert     |                       | Path to a CA certificate file, containing one or more CA certificates to use to validate the certificate sent by the Consul server to us\n+consul-ssl-cert        |                       | Path to an SSL client certificate to use to authenticate to the Consul server\n+consul-ssl-verify      | `true`                | Verify certificates when connecting via SSL\n+consul-token           |                       | The Consul ACL token\n+consul-tag             | `marathon`            | Common tag name added to every service registered in Consul, should be unique for every Marathon-cluster connected to Consul\n+consul-timeout         | `3s`                  | Time limit for requests made by the Consul HTTP client. A Timeout of zero means no timeout\n+events-queue-size      | `1000`                | Size of events queue\n+listen                 | `:4000`               | Accept connections at this address\n+log-level              | `info`                | Log level: panic, fatal, error, warn, info, or debug\n+log-format             | `text`                | Log format: JSON, text\n+log-file               |                       | Save logs to file (e.g.: `/var/log/marathon-consul.log`). If empty logs are published to STDERR\n+marathon-location      | `localhost:8080`      | Marathon URL\n+marathon-password      |                       | Marathon password for basic auth\n+marathon-protocol      | `http`                | Marathon protocol (http or https)\n+marathon-username      |                       | Marathon username for basic auth\n+marathon-timeout       | `30s`                 | Time limit for requests made by the Marathon HTTP client. A Timeout of zero means no timeout\n+metrics-interval       | `30s`                 | Metrics reporting [interval](https://golang.org/pkg/time/#Duration) **Note:** While using file configuration intervals should be provided in *nanoseconds*\n+metrics-location       |                       | Graphite URL (used when metrics-target is set to graphite)\n+metrics-prefix         | `default`             | Metrics prefix (resolved to `<hostname>.<app_name>` by default)\n+metrics-target         | `stdout`              | Metrics destination `stdout` or `graphite` (empty string disables metrics)\n+sync-enabled           | `true`                | Enable Marathon-consul scheduled sync\n+sync-force             | `false`               | Force leadership-independent Marathon-consul sync (run always)\n+sync-interval          | `15m0s`               | Marathon-consul sync [interval](https://golang.org/pkg/time/#Duration) **Note:** While using file configuration intervals should be provided in *nanoseconds*\n+sync-leader            | `<hostname>:8080`     | Marathon cluster-wide node name (defaults to `<hostname>:8080`), the sync will run only if the node is the current [Marathon-leader](https://mesosphere.github.io/marathon/docs/rest-api.html#get-v2-leader)\n+workers-pool-size      | `10`                  | Number of concurrent workers processing events\n+","path":"README.md","position":74,"original_position":74,"commit_id":"ee63401cf93cbc59340dedf0166be7ec5b5e4e47","original_commit_id":"ee63401cf93cbc59340dedf0166be7ec5b5e4e47","user":{"login":"dankraw","id":2399036,"avatar_url":"https://avatars.githubusercontent.com/u/2399036?v=3","gravatar_id":"","url":"https://api.github.com/users/dankraw","html_url":"https://github.com/dankraw","followers_url":"https://api.github.com/users/dankraw/followers","following_url":"https://api.github.com/users/dankraw/following{/other_user}","gists_url":"https://api.github.com/users/dankraw/gists{/gist_id}","starred_url":"https://api.github.com/users/dankraw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dankraw/subscriptions","organizations_url":"https://api.github.com/users/dankraw/orgs","repos_url":"https://api.github.com/users/dankraw/repos","events_url":"https://api.github.com/users/dankraw/events{/privacy}","received_events_url":"https://api.github.com/users/dankraw/received_events","type":"User","site_admin":false},"body":"Well, I didn't manually touch the file. You should know the differences better than me. :D","created_at":"2016-06-20T17:26:34Z","updated_at":"2016-06-20T17:26:34Z","html_url":"https://github.com/allegro/marathon-consul/pull/87#discussion_r67730230","pull_request_url":"https://api.github.com/repos/allegro/marathon-consul/pulls/87","_links":{"self":{"href":"https://api.github.com/repos/allegro/marathon-consul/pulls/comments/67730230"},"html":{"href":"https://github.com/allegro/marathon-consul/pull/87#discussion_r67730230"},"pull_request":{"href":"https://api.github.com/repos/allegro/marathon-consul/pulls/87"}}},"pull_request":{"url":"https://api.github.com/repos/allegro/marathon-consul/pulls/87","id":74479967,"html_url":"https://github.com/allegro/marathon-consul/pull/87","diff_url":"https://github.com/allegro/marathon-consul/pull/87.diff","patch_url":"https://github.com/allegro/marathon-consul/pull/87.patch","issue_url":"https://api.github.com/repos/allegro/marathon-consul/issues/87","number":87,"state":"open","locked":false,"title":"Configurable Consul service name separator","user":{"login":"dankraw","id":2399036,"avatar_url":"https://avatars.githubusercontent.com/u/2399036?v=3","gravatar_id":"","url":"https://api.github.com/users/dankraw","html_url":"https://github.com/dankraw","followers_url":"https://api.github.com/users/dankraw/followers","following_url":"https://api.github.com/users/dankraw/following{/other_user}","gists_url":"https://api.github.com/users/dankraw/gists{/gist_id}","starred_url":"https://api.github.com/users/dankraw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dankraw/subscriptions","organizations_url":"https://api.github.com/users/dankraw/orgs","repos_url":"https://api.github.com/users/dankraw/repos","events_url":"https://api.github.com/users/dankraw/events{/privacy}","received_events_url":"https://api.github.com/users/dankraw/received_events","type":"User","site_admin":false},"body":"Fixes #81 Different implementation, app -> service name conversion moved to Consul object.\r\n\r\nContains work from @janisz at #85 \r\n\r\n👯 👯 👯 ","created_at":"2016-06-20T17:18:38Z","updated_at":"2016-06-20T17:26:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"04892a7bc51a7130c116eea86f5ea6301185c62d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/allegro/marathon-consul/pulls/87/commits","review_comments_url":"https://api.github.com/repos/allegro/marathon-consul/pulls/87/comments","review_comment_url":"https://api.github.com/repos/allegro/marathon-consul/pulls/comments{/number}","comments_url":"https://api.github.com/repos/allegro/marathon-consul/issues/87/comments","statuses_url":"https://api.github.com/repos/allegro/marathon-consul/statuses/ee63401cf93cbc59340dedf0166be7ec5b5e4e47","head":{"label":"allegro:fixes_81_service_name_separator","ref":"fixes_81_service_name_separator","sha":"ee63401cf93cbc59340dedf0166be7ec5b5e4e47","user":{"login":"allegro","id":562236,"avatar_url":"https://avatars.githubusercontent.com/u/562236?v=3","gravatar_id":"","url":"https://api.github.com/users/allegro","html_url":"https://github.com/allegro","followers_url":"https://api.github.com/users/allegro/followers","following_url":"https://api.github.com/users/allegro/following{/other_user}","gists_url":"https://api.github.com/users/allegro/gists{/gist_id}","starred_url":"https://api.github.com/users/allegro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allegro/subscriptions","organizations_url":"https://api.github.com/users/allegro/orgs","repos_url":"https://api.github.com/users/allegro/repos","events_url":"https://api.github.com/users/allegro/events{/privacy}","received_events_url":"https://api.github.com/users/allegro/received_events","type":"Organization","site_admin":false},"repo":{"id":47399967,"name":"marathon-consul","full_name":"allegro/marathon-consul","owner":{"login":"allegro","id":562236,"avatar_url":"https://avatars.githubusercontent.com/u/562236?v=3","gravatar_id":"","url":"https://api.github.com/users/allegro","html_url":"https://github.com/allegro","followers_url":"https://api.github.com/users/allegro/followers","following_url":"https://api.github.com/users/allegro/following{/other_user}","gists_url":"https://api.github.com/users/allegro/gists{/gist_id}","starred_url":"https://api.github.com/users/allegro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allegro/subscriptions","organizations_url":"https://api.github.com/users/allegro/orgs","repos_url":"https://api.github.com/users/allegro/repos","events_url":"https://api.github.com/users/allegro/events{/privacy}","received_events_url":"https://api.github.com/users/allegro/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/allegro/marathon-consul","description":"Event-based registration of Marathon apps in Consul","fork":false,"url":"https://api.github.com/repos/allegro/marathon-consul","forks_url":"https://api.github.com/repos/allegro/marathon-consul/forks","keys_url":"https://api.github.com/repos/allegro/marathon-consul/keys{/key_id}","collaborators_url":"https://api.github.com/repos/allegro/marathon-consul/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/allegro/marathon-consul/teams","hooks_url":"https://api.github.com/repos/allegro/marathon-consul/hooks","issue_events_url":"https://api.github.com/repos/allegro/marathon-consul/issues/events{/number}","events_url":"https://api.github.com/repos/allegro/marathon-consul/events","assignees_url":"https://api.github.com/repos/allegro/marathon-consul/assignees{/user}","branches_url":"https://api.github.com/repos/allegro/marathon-consul/branches{/branch}","tags_url":"https://api.github.com/repos/allegro/marathon-consul/tags","blobs_url":"https://api.github.com/repos/allegro/marathon-consul/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/allegro/marathon-consul/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/allegro/marathon-consul/git/refs{/sha}","trees_url":"https://api.github.com/repos/allegro/marathon-consul/git/trees{/sha}","statuses_url":"https://api.github.com/repos/allegro/marathon-consul/statuses/{sha}","languages_url":"https://api.github.com/repos/allegro/marathon-consul/languages","stargazers_url":"https://api.github.com/repos/allegro/marathon-consul/stargazers","contributors_url":"https://api.github.com/repos/allegro/marathon-consul/contributors","subscribers_url":"https://api.github.com/repos/allegro/marathon-consul/subscribers","subscription_url":"https://api.github.com/repos/allegro/marathon-consul/subscription","commits_url":"https://api.github.com/repos/allegro/marathon-consul/commits{/sha}","git_commits_url":"https://api.github.com/repos/allegro/marathon-consul/git/commits{/sha}","comments_url":"https://api.github.com/repos/allegro/marathon-consul/comments{/number}","issue_comment_url":"https://api.github.com/repos/allegro/marathon-consul/issues/comments{/number}","contents_url":"https://api.github.com/repos/allegro/marathon-consul/contents/{+path}","compare_url":"https://api.github.com/repos/allegro/marathon-consul/compare/{base}...{head}","merges_url":"https://api.github.com/repos/allegro/marathon-consul/merges","archive_url":"https://api.github.com/repos/allegro/marathon-consul/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/allegro/marathon-consul/downloads","issues_url":"https://api.github.com/repos/allegro/marathon-consul/issues{/number}","pulls_url":"https://api.github.com/repos/allegro/marathon-consul/pulls{/number}","milestones_url":"https://api.github.com/repos/allegro/marathon-consul/milestones{/number}","notifications_url":"https://api.github.com/repos/allegro/marathon-consul/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/allegro/marathon-consul/labels{/name}","releases_url":"https://api.github.com/repos/allegro/marathon-consul/releases{/id}","deployments_url":"https://api.github.com/repos/allegro/marathon-consul/deployments","created_at":"2015-12-04T11:26:26Z","updated_at":"2016-06-15T23:09:26Z","pushed_at":"2016-06-20T17:18:38Z","git_url":"git://github.com/allegro/marathon-consul.git","ssh_url":"git@github.com:allegro/marathon-consul.git","clone_url":"https://github.com/allegro/marathon-consul.git","svn_url":"https://github.com/allegro/marathon-consul","homepage":"","size":287,"stargazers_count":71,"watchers_count":71,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":9,"forks":5,"open_issues":9,"watchers":71,"default_branch":"master"}},"base":{"label":"allegro:master","ref":"master","sha":"6ed7737d4e5ddf82bd078005b8caa6a6b18270b5","user":{"login":"allegro","id":562236,"avatar_url":"https://avatars.githubusercontent.com/u/562236?v=3","gravatar_id":"","url":"https://api.github.com/users/allegro","html_url":"https://github.com/allegro","followers_url":"https://api.github.com/users/allegro/followers","following_url":"https://api.github.com/users/allegro/following{/other_user}","gists_url":"https://api.github.com/users/allegro/gists{/gist_id}","starred_url":"https://api.github.com/users/allegro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allegro/subscriptions","organizations_url":"https://api.github.com/users/allegro/orgs","repos_url":"https://api.github.com/users/allegro/repos","events_url":"https://api.github.com/users/allegro/events{/privacy}","received_events_url":"https://api.github.com/users/allegro/received_events","type":"Organization","site_admin":false},"repo":{"id":47399967,"name":"marathon-consul","full_name":"allegro/marathon-consul","owner":{"login":"allegro","id":562236,"avatar_url":"https://avatars.githubusercontent.com/u/562236?v=3","gravatar_id":"","url":"https://api.github.com/users/allegro","html_url":"https://github.com/allegro","followers_url":"https://api.github.com/users/allegro/followers","following_url":"https://api.github.com/users/allegro/following{/other_user}","gists_url":"https://api.github.com/users/allegro/gists{/gist_id}","starred_url":"https://api.github.com/users/allegro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allegro/subscriptions","organizations_url":"https://api.github.com/users/allegro/orgs","repos_url":"https://api.github.com/users/allegro/repos","events_url":"https://api.github.com/users/allegro/events{/privacy}","received_events_url":"https://api.github.com/users/allegro/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/allegro/marathon-consul","description":"Event-based registration of Marathon apps in Consul","fork":false,"url":"https://api.github.com/repos/allegro/marathon-consul","forks_url":"https://api.github.com/repos/allegro/marathon-consul/forks","keys_url":"https://api.github.com/repos/allegro/marathon-consul/keys{/key_id}","collaborators_url":"https://api.github.com/repos/allegro/marathon-consul/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/allegro/marathon-consul/teams","hooks_url":"https://api.github.com/repos/allegro/marathon-consul/hooks","issue_events_url":"https://api.github.com/repos/allegro/marathon-consul/issues/events{/number}","events_url":"https://api.github.com/repos/allegro/marathon-consul/events","assignees_url":"https://api.github.com/repos/allegro/marathon-consul/assignees{/user}","branches_url":"https://api.github.com/repos/allegro/marathon-consul/branches{/branch}","tags_url":"https://api.github.com/repos/allegro/marathon-consul/tags","blobs_url":"https://api.github.com/repos/allegro/marathon-consul/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/allegro/marathon-consul/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/allegro/marathon-consul/git/refs{/sha}","trees_url":"https://api.github.com/repos/allegro/marathon-consul/git/trees{/sha}","statuses_url":"https://api.github.com/repos/allegro/marathon-consul/statuses/{sha}","languages_url":"https://api.github.com/repos/allegro/marathon-consul/languages","stargazers_url":"https://api.github.com/repos/allegro/marathon-consul/stargazers","contributors_url":"https://api.github.com/repos/allegro/marathon-consul/contributors","subscribers_url":"https://api.github.com/repos/allegro/marathon-consul/subscribers","subscription_url":"https://api.github.com/repos/allegro/marathon-consul/subscription","commits_url":"https://api.github.com/repos/allegro/marathon-consul/commits{/sha}","git_commits_url":"https://api.github.com/repos/allegro/marathon-consul/git/commits{/sha}","comments_url":"https://api.github.com/repos/allegro/marathon-consul/comments{/number}","issue_comment_url":"https://api.github.com/repos/allegro/marathon-consul/issues/comments{/number}","contents_url":"https://api.github.com/repos/allegro/marathon-consul/contents/{+path}","compare_url":"https://api.github.com/repos/allegro/marathon-consul/compare/{base}...{head}","merges_url":"https://api.github.com/repos/allegro/marathon-consul/merges","archive_url":"https://api.github.com/repos/allegro/marathon-consul/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/allegro/marathon-consul/downloads","issues_url":"https://api.github.com/repos/allegro/marathon-consul/issues{/number}","pulls_url":"https://api.github.com/repos/allegro/marathon-consul/pulls{/number}","milestones_url":"https://api.github.com/repos/allegro/marathon-consul/milestones{/number}","notifications_url":"https://api.github.com/repos/allegro/marathon-consul/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/allegro/marathon-consul/labels{/name}","releases_url":"https://api.github.com/repos/allegro/marathon-consul/releases{/id}","deployments_url":"https://api.github.com/repos/allegro/marathon-consul/deployments","created_at":"2015-12-04T11:26:26Z","updated_at":"2016-06-15T23:09:26Z","pushed_at":"2016-06-20T17:18:38Z","git_url":"git://github.com/allegro/marathon-consul.git","ssh_url":"git@github.com:allegro/marathon-consul.git","clone_url":"https://github.com/allegro/marathon-consul.git","svn_url":"https://github.com/allegro/marathon-consul","homepage":"","size":287,"stargazers_count":71,"watchers_count":71,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":9,"forks":5,"open_issues":9,"watchers":71,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/allegro/marathon-consul/pulls/87"},"html":{"href":"https://github.com/allegro/marathon-consul/pull/87"},"issue":{"href":"https://api.github.com/repos/allegro/marathon-consul/issues/87"},"comments":{"href":"https://api.github.com/repos/allegro/marathon-consul/issues/87/comments"},"review_comments":{"href":"https://api.github.com/repos/allegro/marathon-consul/pulls/87/comments"},"review_comment":{"href":"https://api.github.com/repos/allegro/marathon-consul/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/allegro/marathon-consul/pulls/87/commits"},"statuses":{"href":"https://api.github.com/repos/allegro/marathon-consul/statuses/ee63401cf93cbc59340dedf0166be7ec5b5e4e47"}}}}
{"actor":{"display_login":"dankraw"}}