{"action":"created","issue":{"url":"https://api.github.com/repos/CiscoCloud/marathon-consul/issues/16","labels_url":"https://api.github.com/repos/CiscoCloud/marathon-consul/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/CiscoCloud/marathon-consul/issues/16/comments","events_url":"https://api.github.com/repos/CiscoCloud/marathon-consul/issues/16/events","html_url":"https://github.com/CiscoCloud/marathon-consul/issues/16","id":116445771,"number":16,"title":"marathon-consul with consul-template example","user":{"login":"scalp42","id":1475276,"avatar_url":"https://avatars.githubusercontent.com/u/1475276?v=3","gravatar_id":"","url":"https://api.github.com/users/scalp42","html_url":"https://github.com/scalp42","followers_url":"https://api.github.com/users/scalp42/followers","following_url":"https://api.github.com/users/scalp42/following{/other_user}","gists_url":"https://api.github.com/users/scalp42/gists{/gist_id}","starred_url":"https://api.github.com/users/scalp42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scalp42/subscriptions","organizations_url":"https://api.github.com/users/scalp42/orgs","repos_url":"https://api.github.com/users/scalp42/repos","events_url":"https://api.github.com/users/scalp42/events{/privacy}","received_events_url":"https://api.github.com/users/scalp42/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-11T23:39:13Z","updated_at":"2015-11-11T23:43:22Z","closed_at":null,"body":"Any chance the repo could show an example on how to use it lets say with `consul-template` for example ?\r\n\r\nI'm assuming we need to grab `taskStatus` in the JSON store:\r\n\r\n```golang\r\n{{with $t := key \"marathon/TASKNAME/tasks/SUBTASKNAME\" | parseJSON}}\r\n{{if $t}}\r\n{{$t.taskStatus}}\r\n{{end}}\r\n{{end}}\r\n```\r\n\r\nBut how do we iterate the tasks in the KV ? `marathon-consul` seems to store a single key as well as a folder:\r\n\r\n```\r\nMARATHON/\r\n  TASKNAME/\r\n  TASKNAME\r\n```\r\n\r\nThanks in advance for chiming in.\r\n"},"comment":{"url":"https://api.github.com/repos/CiscoCloud/marathon-consul/issues/comments/155946008","html_url":"https://github.com/CiscoCloud/marathon-consul/issues/16#issuecomment-155946008","issue_url":"https://api.github.com/repos/CiscoCloud/marathon-consul/issues/16","id":155946008,"user":{"login":"stevendborrelli","id":414702,"avatar_url":"https://avatars.githubusercontent.com/u/414702?v=3","gravatar_id":"","url":"https://api.github.com/users/stevendborrelli","html_url":"https://github.com/stevendborrelli","followers_url":"https://api.github.com/users/stevendborrelli/followers","following_url":"https://api.github.com/users/stevendborrelli/following{/other_user}","gists_url":"https://api.github.com/users/stevendborrelli/gists{/gist_id}","starred_url":"https://api.github.com/users/stevendborrelli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevendborrelli/subscriptions","organizations_url":"https://api.github.com/users/stevendborrelli/orgs","repos_url":"https://api.github.com/users/stevendborrelli/repos","events_url":"https://api.github.com/users/stevendborrelli/events{/privacy}","received_events_url":"https://api.github.com/users/stevendborrelli/received_events","type":"User","site_admin":false},"created_at":"2015-11-11T23:43:22Z","updated_at":"2015-11-11T23:43:22Z","body":"This is what we use in haproxy-consul: \r\n\r\nhttps://github.com/CiscoCloud/haproxy-consul/blob/master/template/marathon.tmpl\r\n\r\nJust as an FYI, we are moving towards replacing the marathon-> marathon-consul -> consul setup with traefik. "}}