How to monitor your uptime with OnlineOrNot

Jumping into monitoring software for the first time can be pretty overwhelming. If you're not in an exploring mood it can be easy to get lost, and you're not sure what all the knobs and buttons do.

To help lighten this feeling for OnlineOrNot, I thought it might be useful to let folks know how I use OnlineOrNot, to monitor OnlineOrNot.

You might think it's silly to monitor your own site as an uptime monitoring service, however as I keep the monitoring infrastructure separate from the marketing website and web app, I actually get notified if anything goes wrong.

Table of Contents

What to monitor

To start with, I monitor:

As OnlineOrNot's marketing site is mainly static HTML (not powered by anything server-based like WordPress), monitoring the main landing page covers almost every page that could go down. I also monitor the sitemap as it's generated by a script at build time, and that script has failed in the past.

Settings for Landing Pages

I use the following settings for both my main landing page, and the sitemap.xml file.

To start with, I have OnlineOrNot check its own landing page every thirty seconds, from around the world: OnlineOrNot landing page monitoring settings

Things can get noisy on the internet, and it's possible for a website to fail uptime checks for a minute or two without it being a particular drama (assuming it's not a regular occurrence). As a result, I only want to be notified if my landing page check fails four times in a row (two minutes of continuous downtime):

OnlineOrNot landing page monitoring advanced settings

To be sure it's actually the page I expect that OnlineOrNot is checking, I also set the 'Text to search for' to look for text on the webpage.

Settings for APIs

For APIs, things are a little bit different. If the API check fails, I know something is wrong, and needs investigating immediately.

I have OnlineOrNot check its own public API every thirty seconds: OnlineOrNot API monitoring settings

To make OnlineOrNot actually check the API correctly, I have OnlineOrNot make an API request as a real (test) user, with a valid JWT token.

I set the following HTTP request settings:

OnlineOrNot API HTTP Request settings

It's important to test for correctness too, so I set assertions to check the data is coming back correctly:

OnlineOrNot API assertion settings

Finally, in advanced settings, I set the check to only alert me if two checks in a row fail.

As I'm already checking the response via Assertions, I don't set 'Text to search for' for my API check.

OnlineOrNot API monitoring advanced settings

Alert settings

As I check my phone (way too much), I find email notifications to work quite well when things go wrong (no additional settings required).

For added redundancy though, I also have alerts sent to Slack and Discord, which I've added as integrations for my account:

OnlineOrNot alert settings

Interested in reading more about monitoring?

I send one email every month with an article like this one, to help improve how you and your team monitors your website

Lots of folks in DevOps and SRE like them, and I'd love to hear what you think. You can always unsubscribe.

    You can unsubscribe at any time. Read the privacy policy.