{"action":"created","comment":{"url":"https://api.github.com/repos/openshift/openshift-ansible/pulls/comments/106515052","pull_request_review_id":27437863,"id":106515052,"diff_hunk":"@@ -0,0 +1,274 @@\n+#!/usr/bin/env python\n+'''\n+  Module for performing checks on an elasticseatch, fluentd, and kibana stack\n+'''\n+# pylint: disable=missing-docstring\n+# vim: expandtab:tabstop=4:shiftwidth=4\n+#\n+#   Copyright 2017 Red Hat Inc.\n+#\n+#   Licensed under the Apache License, Version 2.0 (the \"License\");\n+#   you may not use this file except in compliance with the License.\n+#   You may obtain a copy of the License at\n+#\n+#       http://www.apache.org/licenses/LICENSE-2.0\n+#\n+#   Unless required by applicable law or agreed to in writing, software\n+#   distributed under the License is distributed on an \"AS IS\" BASIS,\n+#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+#   See the License for the specific language governing permissions and\n+#   limitations under the License.\n+#\n+import json\n+import os\n+import ssl\n+import urllib2\n+\n+from openshift_checks import OpenShiftCheck, get_var\n+\n+\n+class EFKStackCheck(OpenShiftCheck):\n+    \"\"\"\n+        This is a check for the entire EFK stack shipped with OCP\n+        https://github.com/openshift/openshift-tools/blob/prod/scripts/monitoring/cron-send-logging-checks.py\n+    \"\"\"\n+\n+    name = \"efk_stack_check\"\n+    tags = [\"elasticsearch\", \"efkstack\"]\n+\n+    namespace = \"logging\"","path":"roles/openshift_health_checker/openshift_checks/efk_stack_check.py","position":39,"original_position":39,"commit_id":"a2f74d3d910a2b9b23e7ccf8ff2a04a6be4115db","original_commit_id":"a2f74d3d910a2b9b23e7ccf8ff2a04a6be4115db","user":{"login":"rhcarvalho","id":88819,"avatar_url":"https://avatars3.githubusercontent.com/u/88819?v=3","gravatar_id":"","url":"https://api.github.com/users/rhcarvalho","html_url":"https://github.com/rhcarvalho","followers_url":"https://api.github.com/users/rhcarvalho/followers","following_url":"https://api.github.com/users/rhcarvalho/following{/other_user}","gists_url":"https://api.github.com/users/rhcarvalho/gists{/gist_id}","starred_url":"https://api.github.com/users/rhcarvalho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhcarvalho/subscriptions","organizations_url":"https://api.github.com/users/rhcarvalho/orgs","repos_url":"https://api.github.com/users/rhcarvalho/repos","events_url":"https://api.github.com/users/rhcarvalho/events{/privacy}","received_events_url":"https://api.github.com/users/rhcarvalho/received_events","type":"User","site_admin":false},"body":"@juanvallejo @jcantrill is the namespace for the logging stack installation user-configurable?","created_at":"2017-03-16T19:50:40Z","updated_at":"2017-03-16T20:01:16Z","html_url":"https://github.com/openshift/openshift-ansible/pull/3643#discussion_r106515052","pull_request_url":"https://api.github.com/repos/openshift/openshift-ansible/pulls/3643","_links":{"self":{"href":"https://api.github.com/repos/openshift/openshift-ansible/pulls/comments/106515052"},"html":{"href":"https://github.com/openshift/openshift-ansible/pull/3643#discussion_r106515052"},"pull_request":{"href":"https://api.github.com/repos/openshift/openshift-ansible/pulls/3643"}}},"pull_request":{"url":"https://api.github.com/repos/openshift/openshift-ansible/pulls/3643","id":110489631,"html_url":"https://github.com/openshift/openshift-ansible/pull/3643","diff_url":"https://github.com/openshift/openshift-ansible/pull/3643.diff","patch_url":"https://github.com/openshift/openshift-ansible/pull/3643.patch","issue_url":"https://api.github.com/repos/openshift/openshift-ansible/issues/3643","number":3643,"state":"open","locked":false,"title":"[WIP] Add elasticsearch, fluentd, kibana check","user":{"login":"juanvallejo","id":3902875,"avatar_url":"https://avatars1.githubusercontent.com/u/3902875?v=3","gravatar_id":"","url":"https://api.github.com/users/juanvallejo","html_url":"https://github.com/juanvallejo","followers_url":"https://api.github.com/users/juanvallejo/followers","following_url":"https://api.github.com/users/juanvallejo/following{/other_user}","gists_url":"https://api.github.com/users/juanvallejo/gists{/gist_id}","starred_url":"https://api.github.com/users/juanvallejo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juanvallejo/subscriptions","organizations_url":"https://api.github.com/users/juanvallejo/orgs","repos_url":"https://api.github.com/users/juanvallejo/repos","events_url":"https://api.github.com/users/juanvallejo/events{/privacy}","received_events_url":"https://api.github.com/users/juanvallejo/received_events","type":"User","site_admin":false},"body":"Work in progress.\r\n\r\nAttempts to add an elasticsearch preflight check based on https://github.com/openshift/openshift-tools/blob/prod/scripts/monitoring/cron-send-logging-checks.py\r\n\r\ncc @brenton @rhcarvalho ","created_at":"2017-03-13T20:22:14Z","updated_at":"2017-03-16T20:01:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"915d1b61a84662b5260d5b35ab9d63e19fa461f5","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/openshift/openshift-ansible/pulls/3643/commits","review_comments_url":"https://api.github.com/repos/openshift/openshift-ansible/pulls/3643/comments","review_comment_url":"https://api.github.com/repos/openshift/openshift-ansible/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openshift/openshift-ansible/issues/3643/comments","statuses_url":"https://api.github.com/repos/openshift/openshift-ansible/statuses/a2f74d3d910a2b9b23e7ccf8ff2a04a6be4115db","head":{"label":"juanvallejo:jvallejo/elastic-search-check","ref":"jvallejo/elastic-search-check","sha":"a2f74d3d910a2b9b23e7ccf8ff2a04a6be4115db","user":{"login":"juanvallejo","id":3902875,"avatar_url":"https://avatars1.githubusercontent.com/u/3902875?v=3","gravatar_id":"","url":"https://api.github.com/users/juanvallejo","html_url":"https://github.com/juanvallejo","followers_url":"https://api.github.com/users/juanvallejo/followers","following_url":"https://api.github.com/users/juanvallejo/following{/other_user}","gists_url":"https://api.github.com/users/juanvallejo/gists{/gist_id}","starred_url":"https://api.github.com/users/juanvallejo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juanvallejo/subscriptions","organizations_url":"https://api.github.com/users/juanvallejo/orgs","repos_url":"https://api.github.com/users/juanvallejo/repos","events_url":"https://api.github.com/users/juanvallejo/events{/privacy}","received_events_url":"https://api.github.com/users/juanvallejo/received_events","type":"User","site_admin":false},"repo":{"id":82593304,"name":"openshift-ansible","full_name":"juanvallejo/openshift-ansible","owner":{"login":"juanvallejo","id":3902875,"avatar_url":"https://avatars1.githubusercontent.com/u/3902875?v=3","gravatar_id":"","url":"https://api.github.com/users/juanvallejo","html_url":"https://github.com/juanvallejo","followers_url":"https://api.github.com/users/juanvallejo/followers","following_url":"https://api.github.com/users/juanvallejo/following{/other_user}","gists_url":"https://api.github.com/users/juanvallejo/gists{/gist_id}","starred_url":"https://api.github.com/users/juanvallejo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juanvallejo/subscriptions","organizations_url":"https://api.github.com/users/juanvallejo/orgs","repos_url":"https://api.github.com/users/juanvallejo/repos","events_url":"https://api.github.com/users/juanvallejo/events{/privacy}","received_events_url":"https://api.github.com/users/juanvallejo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/juanvallejo/openshift-ansible","description":"OpenShift Installation and Configuration Management","fork":true,"url":"https://api.github.com/repos/juanvallejo/openshift-ansible","forks_url":"https://api.github.com/repos/juanvallejo/openshift-ansible/forks","keys_url":"https://api.github.com/repos/juanvallejo/openshift-ansible/keys{/key_id}","collaborators_url":"https://api.github.com/repos/juanvallejo/openshift-ansible/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/juanvallejo/openshift-ansible/teams","hooks_url":"https://api.github.com/repos/juanvallejo/openshift-ansible/hooks","issue_events_url":"https://api.github.com/repos/juanvallejo/openshift-ansible/issues/events{/number}","events_url":"https://api.github.com/repos/juanvallejo/openshift-ansible/events","assignees_url":"https://api.github.com/repos/juanvallejo/openshift-ansible/assignees{/user}","branches_url":"https://api.github.com/repos/juanvallejo/openshift-ansible/branches{/branch}","tags_url":"https://api.github.com/repos/juanvallejo/openshift-ansible/tags","blobs_url":"https://api.github.com/repos/juanvallejo/openshift-ansible/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/juanvallejo/openshift-ansible/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/juanvallejo/openshift-ansible/git/refs{/sha}","trees_url":"https://api.github.com/repos/juanvallejo/openshift-ansible/git/trees{/sha}","statuses_url":"https://api.github.com/repos/juanvallejo/openshift-ansible/statuses/{sha}","languages_url":"https://api.github.com/repos/juanvallejo/openshift-ansible/languages","stargazers_url":"https://api.github.com/repos/juanvallejo/openshift-ansible/stargazers","contributors_url":"https://api.github.com/repos/juanvallejo/openshift-ansible/contributors","subscribers_url":"https://api.github.com/repos/juanvallejo/openshift-ansible/subscribers","subscription_url":"https://api.github.com/repos/juanvallejo/openshift-ansible/subscription","commits_url":"https://api.github.com/repos/juanvallejo/openshift-ansible/commits{/sha}","git_commits_url":"https://api.github.com/repos/juanvallejo/openshift-ansible/git/commits{/sha}","comments_url":"https://api.github.com/repos/juanvallejo/openshift-ansible/comments{/number}","issue_comment_url":"https://api.github.com/repos/juanvallejo/openshift-ansible/issues/comments{/number}","contents_url":"https://api.github.com/repos/juanvallejo/openshift-ansible/contents/{+path}","compare_url":"https://api.github.com/repos/juanvallejo/openshift-ansible/compare/{base}...{head}","merges_url":"https://api.github.com/repos/juanvallejo/openshift-ansible/merges","archive_url":"https://api.github.com/repos/juanvallejo/openshift-ansible/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/juanvallejo/openshift-ansible/downloads","issues_url":"https://api.github.com/repos/juanvallejo/openshift-ansible/issues{/number}","pulls_url":"https://api.github.com/repos/juanvallejo/openshift-ansible/pulls{/number}","milestones_url":"https://api.github.com/repos/juanvallejo/openshift-ansible/milestones{/number}","notifications_url":"https://api.github.com/repos/juanvallejo/openshift-ansible/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/juanvallejo/openshift-ansible/labels{/name}","releases_url":"https://api.github.com/repos/juanvallejo/openshift-ansible/releases{/id}","deployments_url":"https://api.github.com/repos/juanvallejo/openshift-ansible/deployments","created_at":"2017-02-20T19:18:13Z","updated_at":"2017-02-20T19:18:19Z","pushed_at":"2017-03-16T18:46:32Z","git_url":"git://github.com/juanvallejo/openshift-ansible.git","ssh_url":"git@github.com:juanvallejo/openshift-ansible.git","clone_url":"https://github.com/juanvallejo/openshift-ansible.git","svn_url":"https://github.com/juanvallejo/openshift-ansible","homepage":"https://install.openshift.com","size":11565,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"openshift:master","ref":"master","sha":"a4c8b2d019756cbba01d9d2f41add3926c21fb8d","user":{"login":"openshift","id":792337,"avatar_url":"https://avatars0.githubusercontent.com/u/792337?v=3","gravatar_id":"","url":"https://api.github.com/users/openshift","html_url":"https://github.com/openshift","followers_url":"https://api.github.com/users/openshift/followers","following_url":"https://api.github.com/users/openshift/following{/other_user}","gists_url":"https://api.github.com/users/openshift/gists{/gist_id}","starred_url":"https://api.github.com/users/openshift/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openshift/subscriptions","organizations_url":"https://api.github.com/users/openshift/orgs","repos_url":"https://api.github.com/users/openshift/repos","events_url":"https://api.github.com/users/openshift/events{/privacy}","received_events_url":"https://api.github.com/users/openshift/received_events","type":"Organization","site_admin":false},"repo":{"id":24109199,"name":"openshift-ansible","full_name":"openshift/openshift-ansible","owner":{"login":"openshift","id":792337,"avatar_url":"https://avatars0.githubusercontent.com/u/792337?v=3","gravatar_id":"","url":"https://api.github.com/users/openshift","html_url":"https://github.com/openshift","followers_url":"https://api.github.com/users/openshift/followers","following_url":"https://api.github.com/users/openshift/following{/other_user}","gists_url":"https://api.github.com/users/openshift/gists{/gist_id}","starred_url":"https://api.github.com/users/openshift/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openshift/subscriptions","organizations_url":"https://api.github.com/users/openshift/orgs","repos_url":"https://api.github.com/users/openshift/repos","events_url":"https://api.github.com/users/openshift/events{/privacy}","received_events_url":"https://api.github.com/users/openshift/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openshift/openshift-ansible","description":"OpenShift Installation and Configuration Management","fork":false,"url":"https://api.github.com/repos/openshift/openshift-ansible","forks_url":"https://api.github.com/repos/openshift/openshift-ansible/forks","keys_url":"https://api.github.com/repos/openshift/openshift-ansible/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openshift/openshift-ansible/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openshift/openshift-ansible/teams","hooks_url":"https://api.github.com/repos/openshift/openshift-ansible/hooks","issue_events_url":"https://api.github.com/repos/openshift/openshift-ansible/issues/events{/number}","events_url":"https://api.github.com/repos/openshift/openshift-ansible/events","assignees_url":"https://api.github.com/repos/openshift/openshift-ansible/assignees{/user}","branches_url":"https://api.github.com/repos/openshift/openshift-ansible/branches{/branch}","tags_url":"https://api.github.com/repos/openshift/openshift-ansible/tags","blobs_url":"https://api.github.com/repos/openshift/openshift-ansible/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openshift/openshift-ansible/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openshift/openshift-ansible/git/refs{/sha}","trees_url":"https://api.github.com/repos/openshift/openshift-ansible/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openshift/openshift-ansible/statuses/{sha}","languages_url":"https://api.github.com/repos/openshift/openshift-ansible/languages","stargazers_url":"https://api.github.com/repos/openshift/openshift-ansible/stargazers","contributors_url":"https://api.github.com/repos/openshift/openshift-ansible/contributors","subscribers_url":"https://api.github.com/repos/openshift/openshift-ansible/subscribers","subscription_url":"https://api.github.com/repos/openshift/openshift-ansible/subscription","commits_url":"https://api.github.com/repos/openshift/openshift-ansible/commits{/sha}","git_commits_url":"https://api.github.com/repos/openshift/openshift-ansible/git/commits{/sha}","comments_url":"https://api.github.com/repos/openshift/openshift-ansible/comments{/number}","issue_comment_url":"https://api.github.com/repos/openshift/openshift-ansible/issues/comments{/number}","contents_url":"https://api.github.com/repos/openshift/openshift-ansible/contents/{+path}","compare_url":"https://api.github.com/repos/openshift/openshift-ansible/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openshift/openshift-ansible/merges","archive_url":"https://api.github.com/repos/openshift/openshift-ansible/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openshift/openshift-ansible/downloads","issues_url":"https://api.github.com/repos/openshift/openshift-ansible/issues{/number}","pulls_url":"https://api.github.com/repos/openshift/openshift-ansible/pulls{/number}","milestones_url":"https://api.github.com/repos/openshift/openshift-ansible/milestones{/number}","notifications_url":"https://api.github.com/repos/openshift/openshift-ansible/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openshift/openshift-ansible/labels{/name}","releases_url":"https://api.github.com/repos/openshift/openshift-ansible/releases{/id}","deployments_url":"https://api.github.com/repos/openshift/openshift-ansible/deployments","created_at":"2014-09-16T17:07:51Z","updated_at":"2017-03-16T19:19:32Z","pushed_at":"2017-03-16T19:59:40Z","git_url":"git://github.com/openshift/openshift-ansible.git","ssh_url":"git@github.com:openshift/openshift-ansible.git","clone_url":"https://github.com/openshift/openshift-ansible.git","svn_url":"https://github.com/openshift/openshift-ansible","homepage":"https://install.openshift.com","size":11740,"stargazers_count":370,"watchers_count":370,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":593,"mirror_url":null,"open_issues_count":350,"forks":593,"open_issues":350,"watchers":370,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openshift/openshift-ansible/pulls/3643"},"html":{"href":"https://github.com/openshift/openshift-ansible/pull/3643"},"issue":{"href":"https://api.github.com/repos/openshift/openshift-ansible/issues/3643"},"comments":{"href":"https://api.github.com/repos/openshift/openshift-ansible/issues/3643/comments"},"review_comments":{"href":"https://api.github.com/repos/openshift/openshift-ansible/pulls/3643/comments"},"review_comment":{"href":"https://api.github.com/repos/openshift/openshift-ansible/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openshift/openshift-ansible/pulls/3643/commits"},"statuses":{"href":"https://api.github.com/repos/openshift/openshift-ansible/statuses/a2f74d3d910a2b9b23e7ccf8ff2a04a6be4115db"}}}}
{"actor":{"display_login":"rhcarvalho"}}