---
title: "Name and query | Grafana Labs"
description: "Name the rule, build a Prometheus query in Builder mode, and set the threshold that defines when the alert fires."
---

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

# Name and query

Name the rule, build a Prometheus query in Builder mode, and set the threshold that defines when the alert fires.

Estimated time: 4 min

[Start this section →](/docs/learning-hub/basic-alerting/02-name-and-query/05-what-is-alert-rule/)
