Web application monitoring and observability: what to track and why it matters to the client
Web application monitoring is a constant automatic check that a website or service works: it opens, responds quickly, returns no errors, accepts orders and payments. Observability goes further: using logs, metrics and traces, the team can understand not only what broke but also why. For the client the point is simple — you and your team learn about a failure, not your customers, and recovery time is measured in minutes rather than days. Monitoring is set up before launch together with the back end, and the support contract states who receives alerts and how quickly they respond.
Open the software development page
Why a business needs monitoring
Without monitoring, people usually learn about a problem last: a customer writes to support that payment fails, or a manager notices that there have been no enquiries from the website for a day. During that time money and trust are lost, and the cause is harder to find — the traces of the failure have already been overwritten.
Monitoring solves three tasks: notice a failure quickly, find its cause quickly and see that things are getting worse before an outage happens. For example, server disk space runs out gradually, and an SSL certificate expires on a date known in advance — such things are caught long before the site stops opening.
Monitoring and observability: the difference
Monitoring answers questions set in advance: does the home page open, how many errors per minute, is the disk full. Observability is a property of the system that lets you answer questions nobody thought of in advance: why the cart loads slowly for some users in one region, which database query is slowing down checkout.
Observability is built on three kinds of data:
| Data | What it is | How it helps |
|---|---|---|
| Logs | Records of events: requests, errors, actions of users and administrators | Reconstruct exactly what happened and in what order |
| Metrics | Numbers over time: response time, number of requests, CPU load, task queue | See the trend and the threshold where a problem begins |
| Traces | The path of a single request through all parts of the system | Find the step where time is lost or an error occurs |
A small website usually needs only uptime monitoring and error collection. Traces become useful when the system consists of several services, queues and external integrations, and one request passes through many links.
What to track first
- availability — whether the website and key API addresses open from outside, from different locations;
- errors — the share of server error responses and unhandled exceptions in the code, with details;
- speed — server response time and page load time for real users;
- business scenarios — whether sign-up, login, checkout and payment go through;
- server resources — CPU, memory, disk, number of database connections;
- background jobs — queues, mailings, schedules, backups: whether they run and how long they wait;
- external dependencies — payment gateway, email service, partner APIs;
- deadlines — expiry of the SSL certificate, domain and server payments.
Business metrics deserve separate attention: if the number of orders per hour drops to zero during working hours, it is a signal even when all technical checks are green. Such drops are often caused by silent errors — for example, a form stopped submitting on one type of device.
Alerts: to whom, when and how
Monitoring on its own is useless if nobody looks at the charts. That is why alerts are set up — messages in a messenger, by email or a phone call when an indicator crosses a threshold.
- an alert should require action; if it can be ignored, it should be removed or softened;
- every alert has a recipient and a clear next step: a short instruction or a link to one;
- severity levels are separated: “site is down” wakes the on-call engineer at night, “disk is 80% full” waits until morning;
- repeated messages about one failure are grouped, otherwise the team stops reading them;
- the alert channel itself is checked: if monitoring breaks, you need to know that too.
Who responds to alerts and during which hours is fixed in the support contract along with response and recovery times. More about such agreements in the guide software support after launch: levels, SLA and contract.
Logs: what to write and what not to
Good logs are structured records with time, severity level, request and user identifiers, and a short description of the event. They let you assemble the full history of one request: from a button click to the payment gateway's response.
What must not be in logs: passwords, full card numbers, access tokens, SMS codes and unnecessary personal data. Logs are kept for a limited period, access is given only to those who need it for work, and the administrators' action log is protected from changes. This is part of the overall protection of the service, covered in more detail in the guide web application security.
What to set up at project launch
- An external availability check of the home page and key API addresses with alerting.
- Error collection from server code and from the browser, with details: where, for whom, after which action.
- Server and database metrics with thresholds for disk, memory and response time.
- A business scenario check — for example, an automatic test order without real payment.
- Monitoring of background jobs and backups: if a backup was not made, that is an incident too.
- Reminders about expiring certificates, the domain and service payments.
- An alert channel and a list of recipients, with roles and hours.
Many of these points connect to other topics: recovery after a failure is covered in the guide application data backup, and speed indicators in website and web app speed.
Tools: ready-made services or self-hosted
Monitoring almost always relies on ready-made tools rather than custom-written ones. There are cloud services that check availability from outside and collect errors and metrics, and there are open-source systems installed on your own server. Cloud services are faster to connect, but data, including fragments of logs, goes to the vendor — this must be considered when working with personal data. Self-hosted setups give control, but they also need maintenance and monitoring.
The availability check must run from outside, not from the same server where the website runs: if the server goes down, it cannot report its own failure.
Next to monitoring it helps to keep a status page — for the team or for customers. When a failure happens, it briefly states what is known, what is being done and when the next update is expected. This reduces the flood of identical support requests and shows that the situation is being handled.
What to ask your contractor
- which checks and alerts will be set up by launch and who receives them;
- whose accounts the monitoring and error collection services run on — preferably the company's;
- how long logs and metrics are stored and how personal data is kept out of them;
- how you will learn about a failure if the contractor's team missed it;
- what an incident review includes: cause, timeline, what was changed so it does not happen again.
It is worth getting these answers before launch and receiving access to monitoring together with the other access to the product.
How it works at JEEKSSHIRE 24
In our own products and in client projects we set up failure monitoring together with the back end: availability checks, error collection, monitoring of background jobs and backups, and alerts to the team. Together with the product the client receives configured alerts and access to them, and under a support agreement we respond to them and investigate the causes of failures.
We name the timeline and cost after analysing the task. More on the software support and improvement page; you can discuss a project on the custom software development page.
Frequently asked questions
What is website monitoring in plain words?
It is an automatic check that a website opens and works quickly and without errors. If something breaks, the people responsible receive an alert and can fix the problem before many customers notice it.
How is monitoring different from observability?
Monitoring checks predefined indicators and reports when a threshold is crossed. Observability lets you use logs, metrics and traces to understand the cause of even an unexpected problem.
Does a small website need monitoring?
Yes, at least a basic one: an external availability check, error alerts and reminders about certificate and domain expiry. It is inexpensive and saves you from a situation where the site is down for days.
Who should receive failure alerts?
The on-call developer or support team that can fix the problem, and a responsible person on the client side for major incidents. The list and response hours are fixed in the contract.
Can personal data be stored in logs?
Not unnecessary data. Passwords, card numbers, tokens and confirmation codes must never be in logs, other personal data is kept to a minimum, and the log retention period is limited.
Why is the availability check run from another server?
If the server hosting the website goes down, it cannot report its own failure. An external check sees the site the same way customers do and fires on any kind of failure.
What is an incident review?
It is a short document after a serious failure: what happened, when it was noticed, how it was restored, what the cause was and what was changed so it does not happen again. Its purpose is to improve the system, not to find someone to blame.
How much does website monitoring cost?
Many services include basic availability checks and error collection in free or inexpensive plans. Costs grow with log volume, the number of checks and data retention. The main cost item is the team's time for setup and response.