Dashboard controls
In the Dashboard controls section of the sidebar, you can add variables, annotation queries, dashboard links, and controls to filter and group data, without leaving the dashboard.
{{< figure src="/media/docs/grafana/dashboards/screenshot-dashboard-controls-v13.1.png" max-width="400px" alt="Dashboard controls in the Dashboard options sidebar view" >}}
Add filters and group by controls
{{< admonition type="note" >}}
The Filter and Group by feature renames the Ad hoc filters variable and extends it by adding grouping for Prometheus and Loki data sources.
However, in the dashboard schema, it's still referred to as "kind": "AdhocVariable" under the variables schema property.
{{< /admonition >}}
For more detailed information on the Filter and Group by option, refer to the full Filter and group by controls documentation.
Add variables
To add a variable, follow these steps:
{{< docs/list >}}
- Complete the variable configuration. For more detailed configuration information, click the one of the following links to complete the steps for adding your selected variable type:
{{< column-list >}}
{{< /column-list >}}
- Click Save.
- (Optional) Enter a description of the changes you've made.
- Click Save.
- Click Exit edit.
{{< /docs/list >}}
For more detailed information on variables, refer to the full Variables documentation.
Add annotation queries
To add an annotation query, follow these steps:
For more detailed information about annotations, refer to the full Annotations documentation.
Add links
For more detailed information on dashboard links, refer to the full Dashboard links documentation.
Add links to dashboards
To add a link to another dashboard at the top of your current dashboard, follow these steps:
{{< docs/list >}}
- Click Save.
- (Optional) Enter a description of the changes you've made.
- Click Save.
- Click Exit edit.
{{< /docs/list >}}
Add a URL link to a dashboard
Add a link to a URL at the top of your current dashboard. You can link to any available URL, including dashboards, panels, or external sites. You can even control the time range to ensure the user is zoomed in on the right data in Grafana.
To add a URL link to your dashboard, follow these steps:
{{< docs/list >}}
- Click Save.
- (Optional) Enter a description of the changes you've made.
- Click Save.
- Click Exit edit.
{{< /docs/list >}}
Manage dashboard controls
After you add dashboard controls, you can manage them from the dashboard options. In this view, the sidebar includes collapsible sections for filters, variables, annotations, and links, including hidden controls that aren't otherwise visible on the dashboard:
{{< figure src="/media/docs/grafana/dashboards/screenshot-dashboard-controls-mgmt-v13.1.png" max-width="450px" alt="Dashboard controls in the Dashboard options sidebar view" >}}
To manage dashboard controls, follow these steps:
-
Click the Dashboard options icon in the sidebar.
-
In the sidebar, expand the appropriate collapsible section.
-
Do one or more of the following:
- Edit: Click the Edit icon on the control to open it in the sidebar so you can make updates.
- Reorder: Drag and drop controls to reorder them.
- Change display: Drag and drop controls between sub-sections Above dashboard, Controls menu, and Hidden to update the control display option. Note that links can't be hidden.
{{< admonition type="tip" >}} To get back to controls management from configuration, click the Dashboard options icon. {{< /admonition >}}
-
Make any other changes as needed.
-
Click Save.
-
(Optional) Enter a description of the changes you've made.
-
Click Save.
-
Click Exit edit.
谢谢你的反馈!