Use Upptime to monitor your website uptime and status

You can download this article in PDF format via the link below to support us.
Download the guide in PDF formatshut down

Upptime is an open source tool that can be used to monitor the uptime and status of the website using GitHub Actions and GitHub pages. You can set it up without any server configuration. You also don’t need to set up any proxy on the website.

In general, it is often important to understand the status of your website and record when it was closed. If your website is used for commercial purposes, this will help troubleshoot and save money.

This guide will discuss how to configure Upptime operations and pages to monitor the status of your website.

Using Upptime, you can get the following information:

  1. The website monitoring interval is 5 minutes,
  2. Downtime notifications/alerts for email or chat channels, such as free time using webhooks.
  3. If the website response code is different from 200, a status notification will be issued.
  4. A custom status page that can be shared with the team for monitoring.

How to configure Upptime for monitoring

Let’s take a look at how to configure Upptime. Please follow the steps below:

Step 1-Copy the Upptime repository

You must copy/fork the official Upptime repository, which is the template repository.in Upptime’s Github repository, Click “Use this template“Button.Use upptime template

Name the repository and check “Include all branches” Options. In my case, I named the repository “web-uptime”Configure repository for upptime

Step 2-Configure monitoring

Many configurations need to be done on the cloned repository.

  • Add GH_PAT

Upptime needs to access this repository so that it can check the website status every 5 minutes. Based on the results, Upptime can open issues, send alerts or submit related information, such as status and response time.

Therefore, we need to provide access to this repository by providing a personal access token.

Go to your account settings and select “Developer Settings”upptime account settingsAccount settingsDeveloper optionsDeveloper options

In the developer options, click “Personal Access Token” then “Generate a new token”. Create new token

You will be asked to provide GitHub credentials.

in”notes

inside “Select Range” Area, check “Repurchase” and “Workflow”. Then click “Generate Token”Configure token

Copy the generated token to a safe place.Received notification, the key is Can only be used once copy.Token generation

Then, we will need to add the generated token as a repository key.

Go to the “Settings” of the cloned repository and select “Secrets”How to use upptime to monitor website uptime

Click”New repository secret” Add the secret we created in the steps above.

Name the new secret GH_PAT And paste the copied token into the “Value” section. Then click “Add Secret”Add GH PAT

You should now see the repository password added.Upptime added for repository secrets

  • Configure the website for monitoring

The next step is to use GitHub actions to configure the websites that Upptime will monitor. The main configuration file is located in the root directory of the main branch.The file is .upptimerc.yml. We need to modify this file to get the details of the website we intend to monitor.

edit .upptimerc.yml In the following way:

  1. Change value owner To your GitHub username
  2. change repo The value is the custom name of the repository you created.In my case web-uptime.
  3. Add your website below sites Well, remember to delete the existing template that came with the template.
  4. Add to cname If you own a website, delete this line.
  5. Uncomment the baseUrl line and change its value to your GitHub repository.

Configure upptime yml

Then submit the changes to the master.Submit the changes to the master

Wait a few minutes to complete the operation. You can check the progress in the “Actions” menu.Githib activity status

When finished, your website status should be displayed in “Real-time Status”.upptime page status

If GitHub actions cause problems, you will also receive email notifications.

You can also click “onupptime status link

Sample output:upptime status page

This is what you need to monitor websites with Upptime. Cheers! !

Check out the following other interesting articles:

10 best open source Linux monitoring tools

How to install Zabbix server on CentOS 8 / RHEL 8

You can download this article in PDF format via the link below to support us.
Download the guide in PDF formatshut down

Related Posts