Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MB mongodb module: connect on fetch, not on init #5120

Merged
merged 2 commits into from
Sep 7, 2017

Conversation

tsg
Copy link
Contributor

@tsg tsg commented Sep 7, 2017

Moving the Dial call to the Fetch, so that in case Mongodb is not (yet)
available, Metricbeat doesn't exit with an error, but just reports the
service being down. This is consistent with the way most of the other
modules are working.

Fixes #5090

@tsg tsg added Metricbeat Metricbeat needs_backport PR is waiting to be backported to other branches. review labels Sep 7, 2017
@tsg tsg requested a review from exekias September 7, 2017 09:42
Moving the Dial call to the Fetch, so that in case Mongodb is not (yet)
available, Metricbeat doesn't exit with an error, but just reports the
service being down. This is consistent with the way most of the other
modules are working.

Fixes elastic#5090
Copy link
Contributor

@exekias exekias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WFG

@exekias exekias merged commit 9c9eaab into elastic:master Sep 7, 2017
tsg added a commit to tsg/beats that referenced this pull request Sep 7, 2017
MB mongodb module: connect on fetch, not on init

Moving the Dial call to the Fetch, so that in case Mongodb is not (yet)
available, Metricbeat doesn't exit with an error, but just reports the
service being down. This is consistent with the way most of the other
modules are working.

Fixes elastic#5090

(cherry picked from commit 9c9eaab)
@tsg tsg removed the needs_backport PR is waiting to be backported to other branches. label Sep 7, 2017
exekias pushed a commit that referenced this pull request Sep 8, 2017
… init (#5128)

MB mongodb module: connect on fetch, not on init

Moving the Dial call to the Fetch, so that in case Mongodb is not (yet)
available, Metricbeat doesn't exit with an error, but just reports the
service being down. This is consistent with the way most of the other
modules are working.

Fixes #5090

(cherry picked from commit 9c9eaab)
leweafan pushed a commit to leweafan/beats that referenced this pull request Apr 28, 2023
… not on init (elastic#5128)

MB mongodb module: connect on fetch, not on init

Moving the Dial call to the Fetch, so that in case Mongodb is not (yet)
available, Metricbeat doesn't exit with an error, but just reports the
service being down. This is consistent with the way most of the other
modules are working.

Fixes elastic#5090

(cherry picked from commit 01fc151)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants