Skip to content

telexintegrations/mongodb_monitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a Telex integration application that monitors the health and speed of your mongo database authomatically through the Telex channel app.

How To test:

INSTALLATION

Clone the repo into your system Follow the steps below to run the server:

1. npm install
2. npm run dev

Run a GET request using the format below:

You can either use https://mongodb-performance-monitor.onrender.com/tick OR http://localhost:3000/tick

You can also use this dummy mongo database for testing purpose:

mongodb+srv://victornkire:vic08133232378@cluster0.xqm7v.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0
curl --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.

Testing using the Telex Platform:

  1. Navigate to the app section of your telex account

  2. Click on "Add New" button at the top left side.

  3. Input this integration json link: https://integration-json.onrender.com/integration.json

  4. This will automatically add the Mongo Performance Monitor to your Telex account.

  5. Activate the Integration and Click Manage App button

  6. Navigate to the Settings section

  7. Input your preferred interval

  8. Input your mongo db url SAVE SETTING AND YOU ARE GOOD TO GO!!!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors