Think Build Implement Repeat
London, UK +44 7367 067226
WhatsApp FOLLOW f in X
  1. Home
  2. Blog
  3. Knowing When Something Has Broken
PHP Development

Knowing When Something Has Broken

Monitoring a PHP application: error tracking, uptime, queue depth and a business metric, plus alerting on absence and routing alerts to people who can act.

Updated 2 min readBy SpiderHunts Technologies

Free estimateNo obligation

Get a free estimate

Tell us what you need. A senior engineer reads every enquiry.

Takes under a minute. We never share your details.

  • Free consultation
  • No commitment
  • NDA on request

Prefer to talk? Book a free 30-minute call →

Quick answer — TL;DR

Error tracking, uptime, queue depth and one business metric. The expensive failures are silent, so alert on absence as well as on errors.

Silent failures cost the most

An application that is down gets noticed within the hour. One where the nightly sync stopped, or the email stopped sending, can run wrong for weeks.

Ask how you would find out if your application stopped sending email today. For most businesses the honest answer is a customer complaint, eventually.

Four things to watch

  1. Errors — aggregated, deduplicated, with the context to diagnose
  2. Uptime — checked frequently, alerting a person
  3. Queue depth and job failures, if you have background work
  4. One business metric — orders, submissions, records processed

The fourth is the one that catches silent failures. If the normal daily count is forty and today it is zero, something is wrong regardless of what the error log says.

Alert on absence

  • Zero activity where activity is normal
  • A scheduled job that did not report completion
  • A queue that has stopped draining
  • An integration that has sent nothing today

Route alerts to someone who can act

AlertGoes to
Application downWhoever can restart it, immediately
Error rate spikeWhoever can diagnose it
Business metric at zeroThe business owner of the process
Certificate expiringWhoever manages hosting
Weekly summaryEveryone, so the system stays visible

Prune the noise

An alert channel that fires forty times a day is a channel people mute. Any alert that has fired repeatedly without anyone acting is either wrongly tuned or unnecessary.

Ten minutes a quarter reviewing what fired and what was acted on keeps the alerts meaningful.

FAQ

Frequently asked questions

The questions readers ask us after this guide.

Still have a question?

Ask us directly — a senior engineer will get back to you.

Ask about your project

What error tracking should we use?

Any established service. What matters is that errors are aggregated and reach someone rather than accumulating in a log file.

How do we monitor a business metric?

A simple daily count with an expected range, alerted when it falls outside. It is a small piece of work with disproportionate value.

Should errors be logged or alerted?

New errors alerted, known ones logged and reviewed. Alerting on everything trains people to ignore alerts.

Do we need an on-call rota?

Rarely for a business application. A morning check and sensible batching covers most situations.

Keep reading

More on PHP Development

PHP Development

Why PHP Is Still a Sensible Choice

Is PHP still a good choice for business applications? Where modern, typed PHP fits, where another language is better, and the hosting and hiring arguments.

PHP Development

Improving Old Code Without a Rewrite

Modernising a legacy PHP application without a rewrite: move to a supported PHP version, add tests around what matters, then strangle rather than replace.

Start here

Would you know if your application stopped working properly?

Not stopped — stopped working properly. That is the failure worth monitoring for.

  1. You tell us what you needTwo minutes on the form, or a message on WhatsApp.
  2. A senior engineer reviews itAnd comes back with questions, a realistic range and an honest view on fit.
  3. Free 30-minute scoping callWe talk through scope, options and a realistic estimate — with no obligation.
Free estimateNo obligation

Talk to someone who builds this

Send a short brief and we will come back with an honest view and a realistic range.

Takes under a minute. We never share your details.

  • Free consultation
  • No commitment
  • NDA on request

Prefer to talk? Book a free 30-minute call →