Monika uses a YAML file format to describe all the settings and configurations. A sample is included in the project in the file
The following are a summary of their settings. In general Monika and its configuration file,
monika.yml is divided into three sections. A probe, an alert and a notification section.
Probes describe the request(s) to perform on your service to test. A probe will include the request, the http url to test, its method, timeout and any headers that you might wish to add..
Here is an example probe:
For further details on probes, check the guide here.
Alerts are part of probes, and describe the conditions to trigger an alert. Alerts are basically test conditions for your service, such as http status, response time, or a particular response body.
The sample below shows an alert will be generated if http response status is 500 or the response time is greater than 150ms.
For details on alerts and how you can configure different triggers, see the guide here here.
Once an alert is triggered, Monika can send a notification through any of the supported channels.
A simple desktop alert for instance is done in two lines, see below:
Monika supports standard channels such as email smtp:
Monika also support a wide variety of chat channels such as whatsapp, discord, Google chat, and even Lark Suite:
For the complete list of the different notification channels supported, visit the guide here.
PT Artha Rajamas Mandiri (Hyperjump) is an open-source-first company providing engineering excellence service. We aim to build and commercialize open-source tools to help companies streamline, simplify, and secure the most important aspects of its modern DevOps practices.
Copyright © 2022 Hyperjump Tech. All Rights Reserved.