docs/sources/alerting/alerting-rules/link-alert-rules-to-panels.md
Grafana allows you to link an alert rule to a dashboard panel. This can help you:
An alert rule is linked to a panel by setting the __dashboardUid__ and __panelId__ annotations. Both annotations must be set together.
When configuring the alert rule, you can set the dashboard and panel annotations as shown in this video.
You can then view the alert state on the panel.
By default, notification messages include a link to the dashboard panel. Additionally, you can enable displaying panel screenshots in notifications.
{{< figure src="/media/docs/alerting/panel-displays-alert-state.png" max-width="1200px" caption="A panel displaying the alert status and state changes." >}}
{{< shared id="create-alert-from-panel" >}}
To streamline alert creation, you can create an alert rule directly from a panel.
{{< /shared >}}
You can then view the alert state on the panel.
By default, notification messages include a link to the dashboard panel. Additionally, you can enable displaying panel screenshots in notifications.
{{< admonition type="note" >}} Changes to panel and alert rule queries aren't synchronized. If you change a query, you have to update it in both the panel and the alert rule. {{< /admonition >}}
This option is available only in time series panels. To access alert rules associated to a time series panel, complete the following steps.
{{< admonition type="tip" >}} For a practical example, refer to our Getting started: Link alerts to visualizations tutorial. {{< /admonition >}}