
* builds out refactored setup topics * Automatically fix some relrefs with mv-manager Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Use refs for tutorials content which is outside of this repository Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Manually fix complicated relrefs Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * consolidates team sync and db encryption topics * Fix relrefs Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * updates setup index file * Convert TOML to YAML Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Add current alias for new alerting content Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Add current aliases to new setup-grafana and configure-security pages Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/setup-grafana/configure-grafana/_index.md Co-authored-by: Torkel Ödegaard <torkel@grafana.com> * moves saml docs, updates order in TOC * Manually fix relrefs Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * added usage insights topics, adjusted weights * corrected relrefs * Fix relrefs broken in rebase Signed-off-by: Jack Baldry <jack.baldry@grafana.com> Co-authored-by: Jack Baldry <jack.baldry@grafana.com> Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2.8 KiB
aliases | keywords | title | ||||||
---|---|---|---|---|---|---|---|---|
|
|
Data links |
Data links
Data links allow you to provide more granular context to your links. You can create links that include the series name or even the value under the cursor. For example, if your visualization showed four servers, you could add a data link to one or two of them.
The link itself is accessible in different ways depending on the visualization. For the Graph you need to click on a data point or line, for a panel like Stat, Gauge, or Bar Gauge you can click anywhere on the visualization to open the context menu.
You can use variables in data links to send people to a detailed dashboard with preserved data filters. For example, you could use variables to specify a time range, series, and variable selection. For more information, refer to [Data link variables]({{< relref "data-link-variables/" >}}).
Typeahead suggestions
When creating or updating a data link, press Cmd+Space or Ctrl+Space on your keyboard to open the typeahead suggestions to more easily add variables to your URL.
{{< figure src="/static/img/docs/data_link_typeahead.png" max-width= "800px" >}}
Add a data link
-
Hover your cursor over the panel that you want to add a link to and then press
e
. Or click the dropdown arrow next to the panel title and then click Edit. -
On the Field tab, scroll down to the Data links section.
-
Expand Data links and then click Add link.
-
Enter a Title. Title is a human-readable label for the link that will be displayed in the UI.
-
Enter the URL you want to link to.
You can even add one of the template variables defined in the dashboard. Click in the URL field and then type
$
or press Ctrl+Space or Cmd+Space to see a list of available variables. By adding template variables to your panel link, the link sends the user to the right context, with the relevant variables already set. For more information, refer to [Data link variables]({{< relref "data-link-variables/" >}}). -
If you want the link to open in a new tab, then select Open in a new tab.
-
Click Save to save changes and close the window.
-
Click Save in the upper right to save your changes to the dashboard.
Update a data link
- On the Field tab, find the link that you want to make changes to.
- Click the Edit (pencil) icon to open the Edit link window.
- Make any necessary changes.
- Click Save to save changes and close the window.
- Click Save in the upper right to save your changes to the dashboard.
Delete a data link
- On the Field tab, find the link that you want to delete.
- Click the X icon next to the link you want to delete.
- Click Save in the upper right to save your changes to the dashboard.