Article
Monitoring a small web app: what to watch, what to alert on, and when ELK is worth it
By Aymane Biti, DevOps and cloud
, 6 min read

For a small web app, start monitoring with three things: an external check that tells you when the site is down, alerts on the few signals your users actually feel, and logs gathered in one place where you can search them. Add a full log platform such as the ELK stack when you run several services and need to search across all of them; until then, lighter tools do the job for less. And alert only on symptoms that need a person, or the alerts will soon be ignored.
What to watch: the four golden signals
Google's Site Reliability Engineering book says that if you can only measure four metrics of a user-facing system, they should be the four golden signals:
- Latency: "the time it takes to service a request". For a small app, the response time of the pages and API calls that matter most, such as sign-in and checkout.
- Traffic: how much demand is placed on the system, for example requests per minute.
- Errors: "the rate of requests that fail", such as server errors and requests that return the wrong result.
- Saturation: how "full" the service is: CPU, memory, disk space and database connections.
Those four, measured on your most important endpoints, tell you most of what you need. Page speed as visitors experience it is a separate measure, covered in our guide to Core Web Vitals.
Alerts people won't learn to ignore
The same book is blunt about alerts that wake someone up: "Every page should be actionable", and "if a page merely merits a robotic response, it shouldn't be a page". It also separates the symptom, what's broken, from the cause, why it's broken. Good alerts fire on symptoms users feel:
- Alert: the site fails the external check twice in a row; the checkout error rate stays high for several minutes; the disk will be full within a day; a backup job failed.
- Dashboard, not alert: CPU at 80% for a minute, a single slow request, a spike that recovers on its own.
Security belongs here too. The OWASP Top 10 for 2025 lists "Security Logging and Alerting Failures" as its ninth category: log sign-ins, failed sign-ins and permission errors, and alert when they jump. A failed backup deserves an alert as well; our backups guide explains why silence there is dangerous.
Logs you can actually use
Three habits make logs useful long before you choose a platform:
- Structured lines: write JSON with consistent fields (time, level, message, user or request ID) instead of free text, so you can filter on any field.
- A request ID: attach the same ID to every log line of a request, across services, so one failing request can be followed from start to end.
- One place: ship logs off the server to a central store with a retention period you chose, so they survive a crashed or replaced machine.
When the ELK stack is worth it
The ELK stack is Elastic's combination of Elasticsearch, Logstash and Kibana. Elasticsearch is a data store "that provides near real-time search and analytics for all types of data"; Logstash is "a data collection engine with real-time pipelining capabilities" that unifies and normalises data from different sources; Kibana is the user interface for searching and building dashboards. Shippers on your servers send data in; Elastic now recommends its Elastic Agent over the older Beats for most uses.
Its strength is search: full-text queries across every log line from every service, with dashboards on top. That pays off when you run several services, investigate incidents that cross them, or need security analysis over months of logs. The price is weight: indexing the full text of every line takes storage and memory, and a self-run cluster is another system to size, upgrade and back up.
For a small product there is a lighter option. Grafana Loki "does not index the contents of the logs, but only indexes metadata about your logs as a set of labels", which keeps its index small and, by its own documentation, significantly lowers the cost of running it. You search by labels such as service and level first, then filter the text. A sensible path is to start there, or with the log viewer your cloud provider already includes, and move to ELK when search across services becomes a daily need.
Metrics and traces
Prometheus is the common open source choice for metrics: it stores time series and collects them by pulling from your services over HTTP, with alerting rules built in and a separate Alertmanager to route the alerts. Its documentation also states its limit: if you need 100% accuracy, such as for per-request billing, it is not a good choice, so keep billing data in your database.
To avoid tying your code to one vendor, instrument it with OpenTelemetry, a framework for creating and exporting traces, metrics and logs that is "vendor- and tool-agnostic". It is not a backend itself: you send its data to Prometheus, Elastic, Grafana or a hosted service, and can change that destination later without rewriting your instrumentation.
A starter setup for a small product
- An external uptime check on the home page and a key API endpoint every few minutes. UptimeRobot's free plan, for example, offers 50 monitors at a 5-minute interval, though it describes that plan as good for hobby and non-profit projects; a business product should budget for a paid plan or use its cloud provider's checks.
- Error tracking and the four golden signals on your main endpoints, with two or three symptom alerts sent to a channel someone reads.
- Structured JSON logs with a request ID, shipped to one central place with a set retention.
- Security events logged: sign-ins, failures and permission errors.
- A monthly look at the dashboards to spot trends such as a disk filling or response times creeping up, before they become alerts.
Running several services on a cluster? Then central logs and metrics stop being optional; our article on whether you need Kubernetes covers what that step involves.
Frequently asked questions
Do I need the ELK stack for a small app?
Usually not at first. A cloud provider's built-in log viewer or a lighter tool such as Grafana Loki covers a single app. ELK pays off when you need fast full-text search across many services or long-term security analysis.
What is the difference between logs, metrics and traces?
Logs are individual events with details; metrics are numbers measured over time, such as error rate; traces follow one request through every service it touches. OpenTelemetry covers all three with one set of libraries.
How many alerts should a small team have?
As few as cover the symptoms users feel, often two or three to start: site down, error rate high, a resource about to run out. Every alert should need a person to act; anything else belongs on a dashboard.
What does monitoring cost?
The open source tools here (Prometheus, Grafana Loki and OpenTelemetry) cost nothing to download, but running them takes servers and time. Hosted services trade that work for a monthly fee, usually based on the volume of data you send.
Sources
- Monitoring Distributed Systems, Site Reliability Engineering, Google, 2016
- OWASP Top 10:2025, OWASP Foundation, 2025
- The Elastic Stack, Elastic Docs, 2026
- Loki overview, Grafana Labs, 2026
- Overview, Prometheus, 2026
- What is OpenTelemetry?, OpenTelemetry, 2026
- Pricing, UptimeRobot, 2026

