This is a Telex integration application that monitors the health and speed of your mongo database authomatically through the Telex channel app.
Clone the repo into your system Follow the steps below to run the server:
1. npm install
2. npm run devRun a GET request using the format below:
You can either use https://mongodb-performance-monitor.onrender.com/tick OR http://localhost:3000/tick
mongodb+srv://victornkire:vic08133232378@cluster0.xqm7v.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0curl --location 'http://localhost:3000/tick' \
--header 'Content-Type: application/json' \
--data '{
"channel_id": "<your-test-telex-channel-id>",
"return_url": "https://ping.telex.im/v1/return/<your-test-telex-channel-id>",
"settings": [
{
"label": "site-1",
"type": "text",
"required": true,
"default": "", //input your mongo database connect url as default.
},
{
"label": "interval",
"type": "text",
"required": true,
"default": "* * * * *"
}
]
}'This will send your performance data to your telex channel.
-
Navigate to the app section of your telex account
-
Click on "Add New" button at the top left side.
-
Input this integration json link: https://integration-json.onrender.com/integration.json
-
This will automatically add the Mongo Performance Monitor to your Telex account.
-
Activate the Integration and Click Manage App button
-
Navigate to the Settings section
-
Input your preferred interval
-
Input your mongo db url SAVE SETTING AND YOU ARE GOOD TO GO!!!