{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/beats/issues/6627","repository_url":"https://api.github.com/repos/elastic/beats","labels_url":"https://api.github.com/repos/elastic/beats/issues/6627/labels{/name}","comments_url":"https://api.github.com/repos/elastic/beats/issues/6627/comments","events_url":"https://api.github.com/repos/elastic/beats/issues/6627/events","html_url":"https://github.com/elastic/beats/pull/6627","id":307577030,"number":6627,"title":"Fail gracefully if X-Pack monitoring is enabled","user":{"login":"ruflin","id":244900,"avatar_url":"https://avatars3.githubusercontent.com/u/244900?v=4","gravatar_id":"","url":"https://api.github.com/users/ruflin","html_url":"https://github.com/ruflin","followers_url":"https://api.github.com/users/ruflin/followers","following_url":"https://api.github.com/users/ruflin/following{/other_user}","gists_url":"https://api.github.com/users/ruflin/gists{/gist_id}","starred_url":"https://api.github.com/users/ruflin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruflin/subscriptions","organizations_url":"https://api.github.com/users/ruflin/orgs","repos_url":"https://api.github.com/users/ruflin/repos","events_url":"https://api.github.com/users/ruflin/events{/privacy}","received_events_url":"https://api.github.com/users/ruflin/received_events","type":"User","site_admin":false},"labels":[{"id":294278853,"url":"https://api.github.com/repos/elastic/beats/labels/libbeat","name":"libbeat","color":"008000","default":false},{"id":876113469,"url":"https://api.github.com/repos/elastic/beats/labels/monitoring","name":"monitoring","color":"8434e5","default":false},{"id":228068770,"url":"https://api.github.com/repos/elastic/beats/labels/review","name":"review","color":"207de5","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-03-22T10:07:09Z","updated_at":"2018-04-10T07:37:08Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/elastic/beats/pulls/6627","html_url":"https://github.com/elastic/beats/pull/6627","diff_url":"https://github.com/elastic/beats/pull/6627.diff","patch_url":"https://github.com/elastic/beats/pull/6627.patch"},"body":"X-Pack Monitoring feature keeps retrying to connect to Elasticsearch until either Elasticsearch is available and the Monitoring is enabled. Before each time a connection attempted failed an errors was logged. This PR changes the implementation that only an info is printed about not being able to connect on the first attempt. After that reporting will keep retrying to connect to Elasticsearch until it is successful, but no errors are logged. On success an message is logged that the connection was successful.\r\n\r\nIf for whatever reason X-Pack was available but at a later point isn't anymore, Monitoring will log errors as this is not an expected case.\r\n\r\nNote: In Elasticsearch 6.2 Monitoring as an interval parameter for the collection. If it is set to `-1` collection is disabled but events will still be written to Elasticsearch. The issue with this in 6.2 is that no cleanup of the sent events happen. In 6.3 there is a collection config option to turn collection off even if monitoring is enabled. If collection is turned off the bulk requests are still accepted and return a 200, but that will not be persisted. The Beat on startup only checks if Monitoring is installed. If collection is enabled or not is a setting internal to monitoring and monitoring is expected to do the right thing with the events here.\r\n\r\nThis PR has been manually tested against 6.2 but no automated tests were implemented yet."},"comment":{"url":"https://api.github.com/repos/elastic/beats/issues/comments/380004351","html_url":"https://github.com/elastic/beats/pull/6627#issuecomment-380004351","issue_url":"https://api.github.com/repos/elastic/beats/issues/6627","id":380004351,"user":{"login":"ruflin","id":244900,"avatar_url":"https://avatars3.githubusercontent.com/u/244900?v=4","gravatar_id":"","url":"https://api.github.com/users/ruflin","html_url":"https://github.com/ruflin","followers_url":"https://api.github.com/users/ruflin/followers","following_url":"https://api.github.com/users/ruflin/following{/other_user}","gists_url":"https://api.github.com/users/ruflin/gists{/gist_id}","starred_url":"https://api.github.com/users/ruflin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruflin/subscriptions","organizations_url":"https://api.github.com/users/ruflin/orgs","repos_url":"https://api.github.com/users/ruflin/repos","events_url":"https://api.github.com/users/ruflin/events{/privacy}","received_events_url":"https://api.github.com/users/ruflin/received_events","type":"User","site_admin":false},"created_at":"2018-04-10T07:37:08Z","updated_at":"2018-04-10T07:37:08Z","author_association":"CONTRIBUTOR","body":"@andrewkroh in progress label removed. Can be merged."}}
{"actor":{"display_login":"ruflin"}}