forked from elastic/beats
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix missing MongoDB config from the
modules.d
folder (elastic#4870)
The command that collected the configurations, used something like this to list the modules: ls module | grep -v .go Problem was, `mongodb` matched the `.go` grep, so it was excluded :) This PR uses `find` to list the directories.
- Loading branch information
Showing
4 changed files
with
24 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
- module: mongodb | ||
metricsets: ["dbstats", "status"] | ||
period: 10s | ||
|
||
# The hosts must be passed as MongoDB URLs in the format: | ||
# [mongodb://][user:pass@]host[:port]. | ||
# The username and password can also be set using the respective configuration | ||
# options. The credentials in the URL take precedence over the username and | ||
# password configuration options. | ||
hosts: ["localhost:27017"] | ||
|
||
# Username to use when connecting to MongoDB. Empty by default. | ||
#username: user | ||
|
||
# Password to use when connecting to MongoDB. Empty by default. | ||
#password: pass |