Create a folder and add labels
You’ll organize your alert into a folder and add labels that control how notifications get routed.
Folders organize alerts by team, service, or purpose, and control who can manage them.
In this milestone, you create a folder, then add rule-level labels.
In the Add folder and labels section, click New folder to open the create dialog.
Give your folder a name — Alerts works for this tutorial, or pick something meaningful to your team — then click Create. Grafana saves the folder and selects it for your rule.
Click Add labels to open the labels editor. Labels are simple key-value tags you attach to the alert. Grafana uses them to decide who to notify.
Add a label with the key severity and the value critical, then click Save.
A server returning 5xx errors is significant, so this alert deserves the critical tag.
Your alert now has a folder and a label. Next, you’ll tell Grafana how often to check the query and how long the problem must last before the alert fires.