monika.yml
file and fill it out with the followingnotifications:- id: unique-id-smtptype: smtpdata:recipients:- YOUR_EMAIL_ADDRESS_HEREhostname: smtp.gmail.comport: 587username: YOUR_GMAIL_ACCOUNTpassword: YOUR_GMAIL_PASSWORD_OR_APP_PASSWORDprobes:- id: '1'name: Monika Landing Pagedescription: Landing page of awesome Monikainterval: 10 # in secondsrequests:- url: https://hyperjumptech.github.io/monikatimeout: 7000 # in millisecondsalerts:- status-not-2xx
Replace YOUR_EMAIL_ADDRESS_HERE
in the monika.yml
with your email address that will receive the notification.
Replace YOUR_GMAIL_ACCOUNT
with your valid Gmail account, e.g., yourname@gmail.com
.
Replace YOUR_GMAIL_PASSWORD_OR_APP_PASSWORD
with your Gmail password.
If you have installed Monika globally, run monika
from Terminal app (macOS) in the same directory where monika.yml
exists. If you haven't, you can quickly run Monika by running npx @hyperjumptech/monika
in the same directory where monika.yml exists.
During runtime, Monika will output a log that looks like this
INFO (on x1): Starting Monika. Probes: 4. Notifications: 1
INFO: 2021-06-16T04:14:40.128Z 1 id:5 200 http://localhost:7001/health 7msINFO: 2021-06-16T04:14:45.109Z 2 id:5 200 http://localhost:7001/health 4msINFO: 2021-06-16T04:14:50.126Z 3 id:5 200 http://localhost:7001/health 10msINFO: 2021-06-16T04:14:55.107Z 4 id:5 200 http://localhost:7001/health 1msWARN: 2021-06-16T04:15:00.117Z 5 id:5 500 http://localhost:7001/health 0ms, ALERT: status-not-2xxWARN: 2021-06-16T04:15:05.371Z 6 id:5 500 http://localhost:7001/health 0ms, ALERT: status-not-2xxWARN: 2021-06-16T04:15:10.128Z 7 id:5 500 http://localhost:7001/health 0ms, ALERT: status-not-2xxWARN: 2021-06-16T04:15:15.138Z 8 id:5 500 http://localhost:7001/health 0ms, ALERT: status-not-2xx, NOTIF: service probably downINFO: 2021-06-16T04:15:20.130Z 9 id:5 200 http://localhost:7001/health 6msINFO: 2021-06-16T04:15:25.128Z 10 id:5 200 http://localhost:7001/health 4msINFO: 2021-06-16T04:15:30.137Z 11 id:5 200 http://localhost:7001/health 6msINFO: 2021-06-16T04:15:35.146Z 12 id:5 200 http://localhost:7001/health 8ms, NOTIF: service is back upINFO: 2021-06-16T04:15:40.140Z 13 id:5 200 http://localhost:7001/health 4msINFO_TYPE: current-time iteration probe:id _probeURL_ [response time in ms],[ALERT messages if any], [NOTIFICATION messages if any]
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 © 2024 Hyperjump Tech. All Rights Reserved.