Part of Datorkirurgen AB – IT experts across Sweden

CloudWatch alarms in AWS warn when an EC2 server runs out of capacity, stops responding or behaves unusually. Business IT Support builds alarms that react to real problems, reach the right person and lead to clear action.

Why monitoring is not optional

Without monitoring, the company often learns about a problem from a customer. By then, the website may have been down for hours, or a disk may have filled up and stopped the database. Therefore, monitoring is a basic requirement for every server that the business depends on.

AWS includes basic metrics for EC2, such as CPU, network and status checks. However, memory and disk space require the CloudWatch agent. As a result, many servers lack the very metrics that would have warned in time.

CloudWatch alarms for CPU usage on an EC2 instance
CloudWatch alarm for CPU usage on an EC2 server. For example, this is how Business IT Support, part of Datorkirurgen AB, monitors servers.

What we monitor with CloudWatch alarms

First of all, we monitor CPU, memory, free disk space and the EC2 status checks. In addition, we watch the network, the number of errors in the web server and the response time of the website from the outside. For databases, we add connections and free storage.

We also monitor costs with AWS Budgets, because an unexpected cost spike can indicate a misconfiguration or a compromised account. Consequently, the company sees both technical and financial problems early.

Details for one of the CloudWatch alarms
Details for an alarm in AWS CloudWatch. Moreover, every alarm has a clear name and description.

How we build CloudWatch alarms that work

A good alarm reacts to a real problem but ignores short spikes. Therefore, we use several evaluation periods, for example CPU above 85 percent for 10 minutes instead of a single minute. We also set an alarm for missing data, so a stopped agent does not go unnoticed.

Notifications go through Amazon SNS to email, SMS or chat. Furthermore, a status check alarm can recover or reboot the instance automatically. As a result, some problems solve themselves before anyone needs to act.

Conditions for one of the CloudWatch alarms
Conditions for an alarm in AWS CloudWatch. For example, several evaluation periods filter out short spikes.

What an alarm should lead to

An alarm without a plan only creates stress. For that reason, each alarm has a short runbook: what it means, how to check the cause and what to do. In addition, we review the alarms after every incident and adjust thresholds that triggered too often or too late.

Finally, we connect the alarms to a dashboard that shows the health of all servers at a glance. Consequently, the team spends less time searching and more time fixing.

Moreover, we test every alarm once after we create it, for example by filling a test disk or stopping the agent. As a result, we know that the notification really reaches the right person before a real problem happens.

The top command showing the server load after an alarm
The command top showing the server load. After an alarm, we therefore check the server directly.
Server racks in a server room
Server racks in a server room. Similarly, physical and virtual servers need the same discipline.

Contact Datorkirurgen AB about CloudWatch alarms

Business IT Support is part of Datorkirurgen AB, which has more than 30 years of experience in IT for businesses. We set up CloudWatch alarms, dashboards and runbooks for EC2 and other AWS services for companies remotely anywhere, and on site in Stockholm and across Sweden.

In addition, our prices start at €250 per hour excluding VAT, or as agreed, and we guarantee to solve the problem. AWS describes alarms in its CloudWatch documentation. Contact us, and we will review the monitoring of your servers.

Frequently asked questions about CloudWatch alarms

Basic questions

Building good alarms

Operations and support

Website developed by Datorkirurgen AB · Privacy policy