Back to Grafana

Data links and actions options

docs/sources/shared/visualizations/datalink-options-2.md

13.0.12.1 KB
Original Source

Data links allow you to link to other panels, dashboards, and external resources and actions let you trigger basic, unauthenticated, API calls. In both cases, you can carry out these tasks while maintaining the context of the source panel.

For each data link, set the following options:

  • Title
  • URL
  • Open in new tab
  • One click - Opens the data link with a single click. Only one data link can have One click enabled at a time.

For each action, define the following API call settings:

<!-- prettier-ignore-start -->
OptionDescription
TitleA human-readable label for the action that's displayed in the UI.
Confirmation messageA descriptive prompt to confirm or cancel the action.
MethodSelect from POST, PUT, or GET.
URLThe request URL.</p><p>To add a variable, click in the URL field and enter $ or press Ctrl+Space or Cmd+Space to see a list of available variables.
VariablesKey and Name pairs with a type selection. Click the + icon to add as many variables as you need. To add a variable to the request, prefix the key with $. You can set the values for the variables when performing an action.
Query parametersKey and Value pairs. Click the + icon to add as many key/value pairs as you need.
HeadersComprised of Key and Value pairs and a Content-Type.</p><p>Click the + icon to add as many key/value pairs as you need.
Content-TypeSelect from the following: application/json, text/plain, application/XML, and application/x-www-form-urlencoded.
BodyThe body of the request.
<!-- prettier-ignore-end -->

To learn more, refer to Configure data links and actions.