Skip to content
Pipoline
sk

Monitoring: How to Find Out About an Outage Before Your Customers Do

If you hear about a problem from a customer, your monitoring isn't working. Here is what to watch, how to set up alerts that don't wake people for nothing, and which tools to use – from a simple uptime check to Prometheus and Grafana.

Pipoline Team4 min read

The phone rings on Monday morning: “Our order form isn’t working.” After some digging it turns out the disk filled up on Saturday night, and the application hasn’t been able to save data since. Nobody knew all weekend – except the customers who went elsewhere.

That is exactly what monitoring is for. Not pretty graphs on a wall, but making sure the right person hears about a problem before a customer feels it.

Three layers that should be covered

1. Is the service reachable from outside?

The simplest and most important check: something outside regularly opens your website or calls your API and verifies that the response arrived in time and contains what it should. This catches server, network and DNS failures, and expired certificates. To start with, an uptime-check service or a tool such as Uptime Kuma is enough.

2. How are the servers and infrastructure doing?

CPU load, memory, disk space, network, database and queue health. These metrics often show a problem before it bites – a disk at 90 % is a warning, not a disaster.

3. How is the application itself behaving?

The server can be fine while the application returns errors or responds slowly. So we also watch application metrics and logs: request counts, error rate, response time, queue length or failed payments.

The four golden signals

For web applications and APIs, a simple set of metrics popularised by Google’s book on Site Reliability Engineering has proven itself:

  • Latency – how long a response takes, ideally including the slowest requests, not just the average,
  • Traffic – how many requests are coming in,
  • Errors – how many of them fail,
  • Saturation – how close the system is to the limit of its capacity.

With these four numbers for every important service, you’ll see most problems in time.

Alerts that don’t wake people for nothing

The most common mistake isn’t missing monitoring. It’s monitoring that sends so many alerts that everyone starts ignoring them. A few rules that help:

  • Alert on symptoms, not causes. “Customers are getting errors” is a reason to wake someone up. “CPU is at 85 %” usually isn’t.
  • Give the problem a moment. A short blip isn’t an outage. An alert should fire only once a problem has lasted several minutes.
  • Distinguish urgency. Some things need fixing immediately, even at night; others can wait until morning. Choose the channel accordingly – phone, Slack or e-mail.
  • Every alert needs a procedure. What does it mean and what should the person do? If there’s no answer, you probably don’t need the alert.
  • Tidy up regularly. An alert that fires repeatedly and that nobody acts on needs fixing or deleting.

This is what a Prometheus rule can look like that alerts when more than 5 % of requests have been failing for over 10 minutes:

groups:
  - name: web
    rules:
      - alert: HighErrorRate
        expr: |
          sum(rate(http_requests_total{status=~"5.."}[5m]))
            / sum(rate(http_requests_total[5m])) > 0.05
        for: 10m
        labels:
          severity: critical
        annotations:
          summary: "More than 5% of requests are failing"
          runbook: "https://wiki.example.com/runbooks/high-error-rate"

Alertmanager then sends the alert to the right person – to their phone, Slack or e-mail depending on urgency – and stops one problem from triggering dozens of messages at once.

Which tools to use

  • Prometheus + Grafana – a proven open-source combination for collecting metrics, graphs and alerts. Works for servers and containers alike.
  • Loki or ELK – central logs you can search across all your servers.
  • OpenTelemetry – a vendor-neutral standard for collecting metrics, logs and request traces from your application.
  • Amazon CloudWatch – if you’re on AWS, most infrastructure metrics are available without installing anything.
  • Uptime Kuma and similar tools – simple availability checks and a status page for customers.

You don’t have to start with everything at once. Three well-tuned alerts are better than three hundred that nobody reads.

Where to start

  1. An external availability check for your website and main API, including certificate expiry.
  2. Basic server metrics – disk, memory, CPU – with an alert when values stay high.
  3. Application error rate and response time – the four golden signals for your most important services.
  4. Central logs – so you’re not searching server by server when something goes wrong.
  5. Backup checks – backups need an alert when they don’t run, too.

And monitoring should grow with the application: ideally you set it up as code, just like the rest of your infrastructure, and new services have it from day one.

📈 Want to know about problems before your customers do?

As part of our Linux server administration and DevOps services we set up monitoring, central logging and alerts so that you hear about problems in time – without being woken up for nothing. Get in touch – the first consultation is free and comes with no obligation.

You might also like

DevOps4 min read

CI/CD: How to Ship New Versions Without Stress – Even on a Friday

Deploying by hand over FTP or SSH is slow and risky. Here is what CI/CD is, what a simple pipeline looks like, how to deploy without downtime and how to roll back quickly when something goes wrong.

Linux4 min read

Securing a Linux Server: 10 Steps No Server Should Be Missing

A server connected to the internet faces automated attacks within minutes of starting. Here is a practical checklist – from SSH keys and updates to firewalls, monitoring and auditing – that removes most common risks.

Cloud3 min read

Does Your Company Need Kubernetes? The Honest Answer Is Often No

Kubernetes is a powerful tool, but also a source of unnecessary complexity and cost. Here is when it really pays off, what the simpler alternatives are, and how to decide based on your situation rather than on trends.

Contact

Need a hand with this?

Tell us in a few sentences what you need. We will get back to you shortly and suggest the next steps – no strings attached.

Prefer a detailed questionnaire? Request a quote

By submitting the form you agree to the processing of personal data.