The problem: a name that tells you nothing
It is 3am and your phone buzzes. The alert says web-1 is down. Which web-1? It could be a client's shop, the booking form, or a test server you forgot about. You are half awake, and you have to work out what matters before you can do anything about it.
A monitor name is the first thing you read in every alert. If it only says what the server is called, you spend the first few minutes working out what it is for. A name you can read in one glance saves that time.
A simple pattern
Use three parts, in the same order every time:
- What it is: the site, job or service, such as checkout, invoice export or homepage.
- Which client or app: the name your client or product goes by.
- Which environment: production, staging or test.
For example: Acme Shop - checkout - production. In an alert, that tells you the client, the part that has broken and whether customers are likely to be affected.
Keep the words plain. Use the names you would say out loud to a colleague. Avoid internal codes that only make sense to whoever set up the server two years ago.
Consistency matters more than cleverness. If every name follows the same order, you can scan a list of ten monitors and see the pattern straight away.
Examples for a freelancer and for a small team
A freelancer with several client sites might end up with a list like this:
Brightwater Cafe - website - productionBrightwater Cafe - contact form - productionLowell Dental - website - productionLowell Dental - booking page - production
When the alert for the contact form arrives, you know which client to open before you reach for your laptop.
A small team with one app has a different problem. Everything shares the same product name, so the parts that change are the function and the environment:
Pinewood app - sign-in - productionPinewood app - API - productionPinewood app - nightly export - productionPinewood app - sign-in - staging
The environment part is what stops you confusing a staging problem with a production one. Without it, two alerts that look the same can send you in opposite directions.
Naming heartbeat monitors for cron jobs and backups
A heartbeat monitor watches a cron job or a backup. The job checks in each time it succeeds, and you get an alert when a check-in is late. That makes the name different from a site monitor. The alert is telling you that something did not happen when it should have, so the name needs to say what the job is and when it should run.
Name the job, then its schedule:
Brightwater Cafe - nightly database backup - runs 02:00 dailyLowell Dental - weekly invoice export - runs Mondays 07:00
The schedule in the name means a late alert tells you straight away how overdue the job is. A backup that should have run at 02:00 and is now four hours late is a different problem from one that runs weekly.
Each monitor also has a failure threshold that you set, so it alerts only after that many failed checks in a row. The name does not need to hold that number, but it is worth checking the threshold when you create the monitor so the schedule in the name and the alert timing agree.
Rename and tidy when you do your monthly review
Once a month, open your monitor list and read it through. Look for:
- any name you no longer recognise
- any client who has left, whose monitors can be removed
- any staging monitor you no longer use
- any heartbeat whose schedule has changed, so the name now lies
Rename, pause or remove as needed. If you are about to delete a client's monitors, download your data first. You can download your data, so a copy is always available before a clean-up.
A monthly review takes less time than one 3am investigation, and it stops the list drifting out of date.
A short checklist for your existing monitors
Set a timer for ten minutes and work through your current list:
- Read every monitor name aloud.
- Could someone who has never seen the list tell which client or app each one belongs to? If not, rename it.
- Add the environment to any name that lacks one.
- For each heartbeat monitor, add what the job does and when it runs.
- Check that the names follow the same order.
- Note any monitor you do not recognise, and check it before you delete anything.
- Stop when the timer goes, and pick up the rest next month.
If you are starting from nothing, the free plan includes 10 monitors, which is enough to name them well from the beginning. Start free at https://app.aperioflow.co.uk/#/signup and set up your first monitors with the pattern above.
For a shorter starting point, see Your first 10 monitors: a short list. When an alert does arrive, Three things a good alert tells you before you open your laptop explains what to look for in the message itself.