Monika v1.6.2 has been released: Zipped Release, Individual Request Alert, Database-less Mode, Bug Fixes and More!

Denny Pradipta
Hyperjump Tech
Published in
4 min readSep 29, 2021
Monika v1.6.2

WARNING: If you use Monika v1.6.1, we encourage you to immediately update to Monika v1.6.2 because in v1.6.1 there is a critical bug where users did not get the incident notifications.

We are very excited to present you Monika v1.6.2, featuring:

  • Zipped Release: Download the released Monika as one zip instead of downloading the Monika and the SQLite binary
  • Individual Request Alert: Each request can now have its own alerts instead of only global alerts for each probe
  • Database-less Mode: Monika logs now do not takes much space
  • Bug fixes: No further explanations are needed.
  • And many more, which you can see on our Release Page!

Zipped Release

If you are an avid binary Monika user, you may have noticed that in previous releases, you need to download two files to use Monika: Monika and Node SQLite binary. Start from v1.6.1, now you can download one zip file according to your operating system, extract the file, and you are ready to go!

Monika in one zip file

Some UNIX-based operating systems such as Linux and macOS may need to add execute permission to the Monika binary by running sudo chmod +x ./monika

Individual Request Alert

In previous versions, you can create a global alert for each probe but not for each request, like so:

notifications:
- id: desktop
type: desktop
probes:
- id: httpbin
name: probe httpbin
requests:
- method: GET
url: 'https://httpbin.org/status/400'
alerts:
- query: response.time > 1000
message: 'Response time is so slow, man!'
incidentThreshold: 1
recoveryThreshold: 1

Starting from v1.6.1, you can create alerts for each request in a probe. Let’s say that you have two requests in a single probe. You want to be notified when one of the requests’ responses is longer than 1000 milliseconds. Then, you want to be notified if the second request status code is not 200. You can define the alerts like so:

notifications:
- id: desktop
type: desktop
probes:
- id: httpbin
name: probe httpbin
requests:
- method: GET
url: 'https://httpbin.org/status/200'
- method: GET
url: 'https://httpbin.org/status/400'
alerts:
- query: response.status != 200
message: 'Status is not 200, what did you do?'
alerts:
- query: response.time > 1000
message: 'Response time is so slow, man!'
incidentThreshold: 1
recoveryThreshold: 1

Yes, we are now using YAML, and you can create your custom notification messages. Maybe you should check our articles about v1.6.0 if you haven’t read that yet.

Database-less Mode

You probably noticed that if you run Monika for a long time, it may take up quite a bit of space in your local disk, especially when you have so many websites to monitor at once. Start from v1.6.1; you can now run Monika in Database-less Mode!

It’s not necessarily “no database mode”. It will still save your logs by default, but only if there is an incident or recovery. If you want to keep track of all requests, you can use the — keep-verbose-flag to store all logs, including the incidents and recoveries.

Bug Fixes

If some of you happened to use v1.6.1, you might have experienced that you are only notified when there is a recovery but not when there is an incident. Well, we fixed that for you in the latest release.

Chaining requests had problems with setting the headers too. If you have a probe with chaining requests in previous versions, you may have noticed that it didn’t set the header properly when you set a new header in a request. That has been fixed too.

We are human, after all. Even Hannah Montana says, “Everybody makes mistakes”. So if you happen to find any bugs when using Monika, do not hesitate to report them on our Github issues page.

Closing

Those are the highlights in this version. For more details about this release, consider checking out our Github release page to see more about this version.

If you have suggestions, feedback, feature requests, or willingness to contribute to Monika, don’t hesitate to open a new issue or further discussion on our Github repository page.

Next week is Hacktoberfest 2021. If you have time, don’t forget to check out our Github issues page regularly in October so that you won’t miss the event’s hype by contributing to open-source software. Thank you so much for reading. I will see you in the next article!

I’m off! — Source

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.

--

--

Denny Pradipta
Hyperjump Tech

Full-stack developer who loves to explore new technologies. Uses MongoDB, Express, React, and Node daily. Regularly writing for Hyperjump Technologies.