Monika Alert Simulator is a utility tool for Monika, developed to simulate incidents and recovery alerts based on the user-provided thresholds. The tool is designed to help you test and understand how Monika handle different alert scenarios, enhancing your ability to manage and resolve incidents.
Written in NodeJS, the Monika Alert Simulator offers a set of APIs that interact with Monika to trigger specific conditions.
- Clone the Repository
git clone https://github.com/hyperjumptech/monika-alert-simulator.git
- Navigate to the Project Directory
cd monika-alert-simulator
- Install Dependencies
npm install
- Run the Simulator
npm start
After you run the simulator, you can access the Swagger API Documentations by visiting http://localhost:8000/docs
To test how the API works, there are Monika configuration examples in the examples
folder.
- Testing the delayed response:
examples/monika-sample-1-delay.yml
- Testing the incorrect status code:
examples/monika-sample-1-status.yml
- Testing multiple probes:
examples/monika-sample-2.yml
- Testing the chaining request feature:
examples/monika-sample-3.yml
- Testing the incorrect response body:
examples/monika-sample-4-error.yml
You can run the configurations above by running monika -c <path_to_monika_configuration
Monika Alert Simulator is licensed under MIT.