---
title: "Destination reached! | Grafana Labs"
description: "You created a complete alert rule in Code mode from query to notification."
---

> For a curated documentation index, see [llms.txt](/llms.txt). For the complete documentation index, see [llms-full.txt](/llms-full.txt).

# Destination reached!

Congratulations on completing this path! Job well done!

We hope you’ve enjoyed traveling with us as you:

- Opened and named your alert rule
- Switched the query editor to Code mode
- Wrote a PromQL error-rate query using two `rate()` calls and a ratio
- Set the alert condition, threshold, and recovery threshold
- Created a folder and added a severity label
- Configured the evaluation interval and pending period
- Confirmed no-data and error handling
- Chose a contact point, wrote the notification message, and saved the rule
- Suppressed notifications during maintenance with a silence

You now have a working alert rule whose error-rate query is written as clear PromQL in Code mode. That’s a pattern you’ll reuse whenever the query needs multi-step math.

* * *

### More to explore (optional)

Read more about how you can:

- [Build alert queries and conditions](/docs/grafana/latest/alerting/fundamentals/alert-rules/queries-conditions/)
- [Write PromQL expressions](/docs/grafana/latest/fundamentals/intro-to-promql/)
- [Configure contact points](/docs/grafana/latest/alerting/configure-notifications/manage-contact-points/)
- [Write effective alert annotations](/docs/grafana/latest/alerting/fundamentals/alert-rules/annotation-label/)
