Monitoring and logs for a small team: four numbers that are enough to start
A dashboard with fifty charts nobody looks at is less useful than four numbers with the right alerts.
Co-founder, Parslinks · Team, marketing & infrastructure
A bus-ticket booking app, the night before Nowruz, 11pm: users are posting on Instagram that ticket purchases won't go through. The tech team finds out at 8am, from those posts. The server was up all night and the home page loaded, so the simple uptime check that only verified the site was "up" reported nothing. But the database connections were exhausted, and every purchase request errored after 30 seconds.
"The site is up" and "the site works" are two different sentences. Good monitoring measures the distance between them.
The four basic signals
Large operations teams call these the "golden signals". For a small team, the same four are the right place to start:
Latency: the 95th percentile, not the average
Averages lie. If 90% of requests finish in 100 ms and 10% take 8 seconds, the average is about 900 ms, a number that looks acceptable while one in ten users is closing the page. The 95th percentile (p95) means "95% of requests are faster than this", and it exposes the slow tail.
Traffic: drops are news too
Everyone notices a spike. Few notice a sudden drop. If requests halve at 8pm, usually the peak, something in DNS, the payment gateway or a mobile carrier is probably keeping users from reaching you at all.
Error rate: as a percentage, not a count
A hundred errors an hour is normal for a site with a million requests; for one with a thousand, it's a disaster. Track the share of 5xx responses. For critical paths like checkout and login, set separate, stricter thresholds.
Saturation: before things break
CPU, memory, database connections and disk space. This signal predicts: memory that went from 60% to 85% in a week will take the app down next week.
| Signal | What to measure | Suggested starting alert |
|---|---|---|
| Latency | Overall p95 and checkout p95 | Above 1 s for 5 minutes |
| Traffic | Requests per minute vs. the same hour last week | A drop of more than 50% for 10 minutes |
| Error rate | Share of 5xx responses | Above 2% for 3 minutes; any checkout error |
| Saturation | Memory, CPU, DB connections, disk | Memory or disk above 85% |
Monitor from outside, and from inside Iran
The signals above come from inside the app. You need one more layer: an external service that, like a real user, opens the home page and a health route every minute. For a business whose users are in Iran, at least one check location should be inside the country. A site that looks healthy from Frankfurt may, at that same moment, fail for users on a domestic carrier.
Logs that help on incident day
console.log("error", err) is harmless on a normal day and useless on incident day. Three small changes make the difference:
Write structured logs. Each line is a JSON object with consistent fields, not a free-form sentence. Searching and filtering becomes simple.
Add a request ID. A unique ID per request, repeated in every log line for that request. When a user says "checkout failed for me at 9:12", that ID finds their whole path.
Never log sensitive data. Card numbers, passwords, one-time codes and tokens never belong in logs. Partially mask phone numbers too.
Where to start
If you have no monitoring today, this order fits into one afternoon:
- An
/api/healthroute that checks the database connection. - An external monitor for the home page and that route, with one check location inside Iran.
- Error-rate and latency alerts sent to a team channel, not one person's inbox.
- Structured logs with a request ID.
On Parslinks, runtime logs and the build log for every deployment are available in the project dashboard; put external monitoring and alerts alongside them.
Add the rest (distributed tracing, business dashboards, profiling) once these four have run smoothly for a month.
Frequently asked questions
Join the discussion
No comments yet. Be the first to share your thoughts.
Related posts
- Deploy
Zero-downtime deployments in practice: rolling, blue/green, and promoting the same artifact
A restart is the simplest way to deploy, and the seconds the service is down are the seconds orders fail. This post lists where downtime really comes from, compares three common release strategies, and shows how to change your database without an outage.
- Platform
PaaS or a VPS? The real DevOps hours behind a small team's server
The VPS price is on the invoice. The hours spent on patches, SSL renewals, deploy scripts and midnight restarts are not. This post counts those hours, compares them with a platform, and is honest about when a VPS is still the better call.
- Deploy
Deploying Next.js to production: what SSG, ISR and SSR each need from your infrastructure
Each page's rendering mode decides what your server has to do. This post covers what SSG, ISR, SSR and PPR need from your infrastructure, how standalone output works, and what breaks once the app runs on more than one instance.
