Hyperjump Tech
Published in

Hyperjump Tech

Monitor your competitor’s website performance using Monika

Photo by Nicolas Hoizey on Unsplash

Let’s say you have created a great website. You are competing in a red ocean where there are so many players in the existing market space. Within you, there is a big urge to beat the competition, you want your website to be the best in the market.

You want to know if your website is more reliable than the others. Maybe other websites are slower, or maybe prone to service outages. You want proof that “Website X is slower than us when it comes to speed” or “Website Y is unreliable”.

This article will help you to monitor your competitors using Monika with a single configuration file. So, without further ado:

Monitor your competitors with Monika

Monika is an open-source and free synthetic monitoring command-line application. Monika stands for “Monitoring Berkala”, which means “periodic monitoring” in the Indonesian language. With Monika, you can add as many websites or endpoints as you want to monitor. You can monitor several conditions such as service outages or slow services.

You can configure Monika to send notifications of the incidents on your services through your favorite communication tools like SMTP mail, WhatsApp (it’s free!), Microsoft Teams, Slack, and many more. There are 18 notification channels to this day that have been integrated into Monika.

To install Monika, you can choose whether you want to use Node Package Manager (NPM), download binaries from the Monika release page, package managers such as Homebrew or Snapcraft, or a Docker image.

To run Monika in your system, you need to create a Monika configuration. Monika uses a YAML file to define all the settings and configurations. You can find a sample configuration file in the repository called monika.example.yml or create your own at the Monika Config Generator website.

Monitoring your competitors

Let’s imagine that we are building an e-Commerce and we want to compare our website performance with other e-Commerces. We could use Indonesian big e-Commerces as our competitors:

https://iprice.co.id/insights/mapofecommerce/en/

Now that we have our competitors ready, it’s time to create a Monika configuration.

Let me explain a little bit about this configuration:

  • Monika will use the Desktop notifications, but you can change it to your preferences.
  • Monika will probe four websites: tokopedia.com, shopee.co.id, bukalapak.com, and lazada.co.id
  • Each website will be probed in parallel, meaning that if one website is having an incident, the other websites will continue to be probed.
  • Each website has a ten seconds interval and a five times incident/recovery threshold. Meaning each website will be monitored every ten seconds and Monika will notify you if there are five times consecutive incidents/recoveries.
  • Each website will alert you if the status code is not 200 or the response time is longer than two seconds (2000ms)

Once the configuration is ready, it’s time to run the configuration by running monika -c <your_configuration_file> in your terminal.

Running Monika

You can also use a remote Monika configuration, just by running monika -c <your_remote_config_url> in your terminal.

Running Monika using remote config

Once there are alerts, you will be notified through your configured notifications channel. Congratulations! Now you can monitor your competitors' performance!

Closing

Monitoring your competitor’s website performance is important so that by monitoring them, you can identify where they went wrong, and you will do everything to avoid their mistakes, and do everything right. The faster your website, the more likely it is that users will remain on the page and continue to browse your website.

If you’re having a problem with using Monika, don’t hesitate to create an issue on Monika’s Github Issue Page. If you like this article, don’t forget to clap and share this article with your friends!

That’s it for today, see you next time!

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 their modern DevOps practices.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Denny Pradipta

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