Skip to content

Write alert messages with evidence and a response path

A worked portal example connects error rate, ownership and the first check. An alert alone proves neither the cause nor successful recovery.

Lukas Schneider2 min read
Orange alarm gong with a striker arm on a housing with a needle gauge.

A useful alert message shows what is wrong with an application and which initial response path is planned. Its recipient should understand it without having to guess the service from an unfamiliar server name.

From the user task to the signal

Start with an important task, such as loading a project list in a customer portal. For interactive services, Prometheus recommends user-visible errors and suitable views for investigating causes, among other signals. A utilisation value can provide context; it does not automatically explain whether the project list works.

Define which requests and responses enter the measurement. Repeated calls are additional requests, not automatically additional affected people. An error rate therefore needs a clear denominator.

A worked alert example

The following software team, measurements and rules are fictional. This is not an ASES incident, a general threshold or a support commitment. All recorded requests for the named operation form the denominator here. The chosen rule evaluates a 5-minute window; it requires no additional holding period.

Field

Example entry

Message

The customer portal's project list returns server errors.

Scope

service=customer-portal, operation=project-list

Window

09:10–09:15, Europe/Berlin

Evidence

100 requests, including 20 server-error responses 5xx; 20 / 100 × 100 = 20 %

Example rule

More than 10 % server errors in the 5-minute window with at least 50 requests.

Owner

On-call team portal-ops; escalate to backup on-call if unacknowledged after 10 minutes.

Starting point

View for precisely this service, operation and period; “Project list” runbook.

Here both the minimum request count and the error threshold have been exceeded. The 20 % describes requests within this window. It proves neither a corresponding share of affected users nor a particular cause.

Prepare the initial response

The runbook is a short guide to the intended diagnostic path. First, the responsible person acknowledges ownership and checks whether the problem is ongoing. Acknowledgement does not mean the fault is fixed. The view's preselected filters must carry the same service, operation and time information.

Next, narrow down affected instances, versions and dependencies. A release at 09:08 would be an event to investigate in this example, not proof of causation. A rollback requires a suitable, previously checked path; the alert does not authorise arbitrary restarts or changes.

Check the notification path too

Alertmanager can group similar alerts and route them to configured recipients. Affected instances must remain visible. Independent problems must not collapse into one merely because their names are similar.

Use a clearly marked test notification to check reception, acknowledgement and the planned backup path too. Prometheus explicitly calls for monitoring the monitoring system itself. Later normal measurements may end the alert state; they replace neither checking the user task nor further cause analysis. Business-level errors returned as success or slow responses are not covered by this simple server-error rule alone.

Sources

Written by

  • Lukas SchneiderTechnical EditorLukas Schneider writes about cloud technologies and running applications at ASES. His articles range from choosing infrastructure to maintenance and backups to monitoring live systems.

Follow ASES

Read more

All articles

Cloud & Operations with ASES

Hosting, deployment, maintenance and support