-
-
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.
- Loading branch information
1 parent
e1f0846
commit 950fa4a
Showing
2 changed files
with
14 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# MongoDB check and notify on Slack | ||
|
||
This app periodically checks the state of a MongoDB instance (ping) and notify on Slack when the state is changing. | ||
It also provides an HTTP endpoint where we can query to see the current state and the last time the state was updated and the date of the last check. | ||
|
||
## Configuration | ||
|
||
This application can be configured using the following environment variables: | ||
|
||
- `MONGODB_URI`: A complete MongoDB URI that will be used to check the state of the MongoDB instance (default: `"mongodb://localhost:27017"`) | ||
- `VERBOSE_MODE`: The verbose mode, if set to `"true"`, will print the result of each check in the logs (default: `"false"`) | ||
- `SHOW_ERRORS`: If set to `"true"`; it will display more details to the error in the logs (default: `"true"`) | ||
- `PING_INTERVAL`: The interval of time in milliseconds where the ping to the MongoDB instance is done (default: `"1000"`) |
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