{"action":"created","issue":{"url":"https://api.github.com/repos/Capgemini/Apollo/issues/503","labels_url":"https://api.github.com/repos/Capgemini/Apollo/issues/503/labels{/name}","comments_url":"https://api.github.com/repos/Capgemini/Apollo/issues/503/comments","events_url":"https://api.github.com/repos/Capgemini/Apollo/issues/503/events","html_url":"https://github.com/Capgemini/Apollo/pull/503","id":114049895,"number":503,"title":"Add prometheus monitoring for nodes / containers","user":{"login":"tayzlor","id":1681896,"avatar_url":"https://avatars.githubusercontent.com/u/1681896?v=3","gravatar_id":"","url":"https://api.github.com/users/tayzlor","html_url":"https://github.com/tayzlor","followers_url":"https://api.github.com/users/tayzlor/followers","following_url":"https://api.github.com/users/tayzlor/following{/other_user}","gists_url":"https://api.github.com/users/tayzlor/gists{/gist_id}","starred_url":"https://api.github.com/users/tayzlor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tayzlor/subscriptions","organizations_url":"https://api.github.com/users/tayzlor/orgs","repos_url":"https://api.github.com/users/tayzlor/repos","events_url":"https://api.github.com/users/tayzlor/events{/privacy}","received_events_url":"https://api.github.com/users/tayzlor/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Capgemini/Apollo/labels/help%20wanted","name":"help wanted","color":"bfd4f2"},{"url":"https://api.github.com/repos/Capgemini/Apollo/labels/needs%20work","name":"needs work","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-10-29T13:32:43Z","updated_at":"2015-10-30T15:57:47Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Capgemini/Apollo/pulls/503","html_url":"https://github.com/Capgemini/Apollo/pull/503","diff_url":"https://github.com/Capgemini/Apollo/pull/503.diff","patch_url":"https://github.com/Capgemini/Apollo/pull/503.patch"},"body":"Opening this up for early sight / feedback. Still on the todo list - \r\n\r\n- [x] Add consul health check for node-exporter (Added in https://github.com/Capgemini/Apollo/commit/9ab5cd094df75a786601f317d490506660aea6dc) \r\n- [x] Add consul health check for mesos-exporter (Added in https://github.com/Capgemini/Apollo/commit/ba1ad7b342d68df9972191a8ed2a633a3f9004fc)\r\n- [x] Add marathon/consul health check for prometheus Docker container (Added in https://github.com/Capgemini/Apollo/commit/741b0b73d0f02df8f859fc452ddc83d93e7733ff)\r\n- [ ] Install and configure https://hub.docker.com/r/prom/promdash/ Docker container\r\n- [ ] Install and configure https://hub.docker.com/r/prom/alertmanager/ Docker container\r\n- [ ] Add a shared data volume across the slave instances so that we can place the storage for prometheus on these volumes so if the container dies and gets restarted elsewhere in the cluster we don't lose the data. How do you setup and attach a volume across multiple instances? https://www.terraform.io/docs/providers/aws/r/volume_attachment.html looks like a 1-to-1\r\n- [x] Add a config switch to enable / disable prometheus monitoring (Added in https://github.com/Capgemini/Apollo/commit/54d3bf95daf31bd87df1940bb3d00e25e16df82c)\r\n\r\nAs an aside we should improve the HAproxy configuration for the backend services so we can access prometheus / promdash correct through the load balancer. We might also want to think about fronting it with some Auth - I guess these could both come in follow-ups / separate tickets. There is already some improved haproxy config here (that only surfaces 'public' services) https://github.com/Capgemini/Apollo/pull/468/files \r\n\r\nAt the moment i've only tested this with aws-public - needs to be further tested on VPC as well."},"comment":{"url":"https://api.github.com/repos/Capgemini/Apollo/issues/comments/152565092","html_url":"https://github.com/Capgemini/Apollo/pull/503#issuecomment-152565092","issue_url":"https://api.github.com/repos/Capgemini/Apollo/issues/503","id":152565092,"user":{"login":"tayzlor","id":1681896,"avatar_url":"https://avatars.githubusercontent.com/u/1681896?v=3","gravatar_id":"","url":"https://api.github.com/users/tayzlor","html_url":"https://github.com/tayzlor","followers_url":"https://api.github.com/users/tayzlor/followers","following_url":"https://api.github.com/users/tayzlor/following{/other_user}","gists_url":"https://api.github.com/users/tayzlor/gists{/gist_id}","starred_url":"https://api.github.com/users/tayzlor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tayzlor/subscriptions","organizations_url":"https://api.github.com/users/tayzlor/orgs","repos_url":"https://api.github.com/users/tayzlor/repos","events_url":"https://api.github.com/users/tayzlor/events{/privacy}","received_events_url":"https://api.github.com/users/tayzlor/received_events","type":"User","site_admin":false},"created_at":"2015-10-30T15:57:47Z","updated_at":"2015-10-30T15:57:47Z","body":"I've road tested this on the AWS VPC setup and it appears to be working well..."}}