{"action":"created","issue":{"url":"https://api.github.com/repos/Otus-DevOps-2018-02/supermegarega_microservices/issues/9","repository_url":"https://api.github.com/repos/Otus-DevOps-2018-02/supermegarega_microservices","labels_url":"https://api.github.com/repos/Otus-DevOps-2018-02/supermegarega_microservices/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/Otus-DevOps-2018-02/supermegarega_microservices/issues/9/comments","events_url":"https://api.github.com/repos/Otus-DevOps-2018-02/supermegarega_microservices/issues/9/events","html_url":"https://github.com/Otus-DevOps-2018-02/supermegarega_microservices/pull/9","id":327275252,"number":9,"title":"Monitoring 1","user":{"login":"supermegarega","id":36918185,"avatar_url":"https://avatars2.githubusercontent.com/u/36918185?v=4","gravatar_id":"","url":"https://api.github.com/users/supermegarega","html_url":"https://github.com/supermegarega","followers_url":"https://api.github.com/users/supermegarega/followers","following_url":"https://api.github.com/users/supermegarega/following{/other_user}","gists_url":"https://api.github.com/users/supermegarega/gists{/gist_id}","starred_url":"https://api.github.com/users/supermegarega/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/supermegarega/subscriptions","organizations_url":"https://api.github.com/users/supermegarega/orgs","repos_url":"https://api.github.com/users/supermegarega/repos","events_url":"https://api.github.com/users/supermegarega/events{/privacy}","received_events_url":"https://api.github.com/users/supermegarega/received_events","type":"User","site_admin":false},"labels":[{"id":852849807,"url":"https://api.github.com/repos/Otus-DevOps-2018-02/supermegarega_microservices/labels/Homework-19","name":"Homework-19","color":"CC6600","default":false},{"id":852850233,"url":"https://api.github.com/repos/Otus-DevOps-2018-02/supermegarega_microservices/labels/Monitoring","name":"Monitoring","color":"00CCCC","default":false}],"state":"open","locked":false,"assignee":{"login":"Nklya","id":26086394,"avatar_url":"https://avatars2.githubusercontent.com/u/26086394?v=4","gravatar_id":"","url":"https://api.github.com/users/Nklya","html_url":"https://github.com/Nklya","followers_url":"https://api.github.com/users/Nklya/followers","following_url":"https://api.github.com/users/Nklya/following{/other_user}","gists_url":"https://api.github.com/users/Nklya/gists{/gist_id}","starred_url":"https://api.github.com/users/Nklya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nklya/subscriptions","organizations_url":"https://api.github.com/users/Nklya/orgs","repos_url":"https://api.github.com/users/Nklya/repos","events_url":"https://api.github.com/users/Nklya/events{/privacy}","received_events_url":"https://api.github.com/users/Nklya/received_events","type":"User","site_admin":false},"assignees":[{"login":"Nklya","id":26086394,"avatar_url":"https://avatars2.githubusercontent.com/u/26086394?v=4","gravatar_id":"","url":"https://api.github.com/users/Nklya","html_url":"https://github.com/Nklya","followers_url":"https://api.github.com/users/Nklya/followers","following_url":"https://api.github.com/users/Nklya/following{/other_user}","gists_url":"https://api.github.com/users/Nklya/gists{/gist_id}","starred_url":"https://api.github.com/users/Nklya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nklya/subscriptions","organizations_url":"https://api.github.com/users/Nklya/orgs","repos_url":"https://api.github.com/users/Nklya/repos","events_url":"https://api.github.com/users/Nklya/events{/privacy}","received_events_url":"https://api.github.com/users/Nklya/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-05-29T11:15:46Z","updated_at":"2018-05-29T22:43:51Z","closed_at":null,"author_association":"COLLABORATOR","pull_request":{"url":"https://api.github.com/repos/Otus-DevOps-2018-02/supermegarega_microservices/pulls/9","html_url":"https://github.com/Otus-DevOps-2018-02/supermegarega_microservices/pull/9","diff_url":"https://github.com/Otus-DevOps-2018-02/supermegarega_microservices/pull/9.diff","patch_url":"https://github.com/Otus-DevOps-2018-02/supermegarega_microservices/pull/9.patch"},"body":"# Выполнено ДЗ № 19\r\n\r\n - [x] Основное ДЗ\r\n - [x] Задание со *\r\n\r\n## В процессе сделано:\r\n - Созданы правила фаервола в _GCP_ для мониторинга приложений\r\n -  Создан _docker-host_ в _GCP_ с помощью . _docker-machine_\r\n -  Настроен и запущен контейнер с _Prometheus_\r\n -  Переупорядочена структура каталогов в репозитории\r\n -  Собраны образы _ui,post-py,comment_ с помощью скриптов docker_build.sh\r\n -  Протестирована работа мониторинга с помощью тестовой имитации падения зависимых сервисов\r\n -  Настроен _node-exporter_ для сбора метрик\r\n -  Созданные в процессе работы образы залиты в _https://hub.docker.com/r/smrdevops/_\r\n -  Настроен мониторинг _MongoDB_ с использованием _mirantisworkloads/mongodb-prometheus-exporter_\r\n -  Настроен мониторинг сервисов с использованием _prom/blackbox-exporter_\r\n -  Создан _Makefile_ для автоматизации сборки и загрузки образов в _hub.docker.com_\r\n\r\n## Как запустить проект:\r\n - Создать правила фаервола\r\n```\r\nexport GOOGLE_PROJECT=project name\r\ngcloud compute firewall-rules create prometheus-default --allow tcp:9090\r\ngcloud compute firewall-rules create puma-default --allow tcp:9292\r\n```\r\n- Создать docker-host\r\n```\r\ndocker-machine create --driver google \\\r\n    --google-machine-image https://www.googleapis.com/compute/v1/projects/ubuntu-os-cloud/global/images/family/ubuntu-1604-lts \\\r\n    --google-machine-type n1-standard-1 \\\r\n    --google-zone europe-west1-b \\\r\n    docker-host\r\n```\r\n- Настроить локальные переменные\r\n```\r\neval $(docker-machine env docker-host)\r\n```\r\n- Запустить \r\n```\r\ncd docker && docker-compose up -d\r\n```\r\n\r\n## Как проверить работоспособность:\r\n - Перейти по ссылке http://docker-host-ip:9090/targets, убедиться что все сервисы работают.\r\n\r\n## PR checklisk\r\n - [x] Выставил label с номером домашнего задания\r\n - [x] Выставил label с темой домашнего задания\r\n"},"comment":{"url":"https://api.github.com/repos/Otus-DevOps-2018-02/supermegarega_microservices/issues/comments/392971519","html_url":"https://github.com/Otus-DevOps-2018-02/supermegarega_microservices/pull/9#issuecomment-392971519","issue_url":"https://api.github.com/repos/Otus-DevOps-2018-02/supermegarega_microservices/issues/9","id":392971519,"user":{"login":"Nklya","id":26086394,"avatar_url":"https://avatars2.githubusercontent.com/u/26086394?v=4","gravatar_id":"","url":"https://api.github.com/users/Nklya","html_url":"https://github.com/Nklya","followers_url":"https://api.github.com/users/Nklya/followers","following_url":"https://api.github.com/users/Nklya/following{/other_user}","gists_url":"https://api.github.com/users/Nklya/gists{/gist_id}","starred_url":"https://api.github.com/users/Nklya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nklya/subscriptions","organizations_url":"https://api.github.com/users/Nklya/orgs","repos_url":"https://api.github.com/users/Nklya/repos","events_url":"https://api.github.com/users/Nklya/events{/privacy}","received_events_url":"https://api.github.com/users/Nklya/received_events","type":"User","site_admin":false},"created_at":"2018-05-29T22:43:51Z","updated_at":"2018-05-29T22:43:51Z","author_association":"NONE","body":"> Создать правила фаервола\r\nexport GOOGLE_PROJECT=project name\r\n\r\nЭто немного не про это"}}
{"actor":{"display_login":"Nklya"}}