Skip to content

Custom Links


Custom links are added to charts. Based on text input and parameter configuration, you can freely combine and generate the final link address associated with the chart to view related data. After adding a custom link, it is enabled and displayed by default, and can be directly shown in the chart preview.

Create

  1. Go to Dashboard > Chart > Links;
  2. Define the link Name;
  3. Add a custom link to the chart;
  4. Confirm.

The link address is generated based on text input and parameter configuration, used to associate the chart with relevant data.

The system provides preset links. You can directly select the data type you want to associate without manually entering the full path.

Associated Data Type Preset Link
Logs /logIndi/log/all
Links /tracing/link/all
Error Tracking /tracing/errorTrack
Profile /tracing/profile
Containers /objectadmin/docker_containers?routerTabActive=ObjectadminDocker
Pod /objectadmin/kubelet_pod?routerTabActive=ObjectadminDocker
Processes /objectadmin/host_processes?routerTabActive=ObjectadminProcesses
Dashboard /scene/dashboard/dashboardDetail

Preset Parameters

Based on the selected preset link, the system provides corresponding parameters.

Parameter
Description
time Time filter, can be used in Explorer, Dashboard.
Link format:
  • Pass query time via template variable: &time=#{TR}
  • Query last 15 minutes: &time=15m
  • Set specific start and end time: &time=1675247688602,1676457288602
  • variable View variable query, generally used in dashboard views.
    Link format: &variable={"host":"guance","service":"kodo"}
    dashboard_id Dashboard ID, can be used to specify a dashboard/built-in view.
    Link format: &dashboard_id=dsbd_069b2b90f562123456789123456789
    name Name, can be used to specify dashboard name/note name/custom explorer name, etc.
    Link format: &name=Linux Host Monitoring View
    query Tag filter or text search, generally used for data filtering in Explorer. Supports combining tag filters and text searches via space, AND, OR.
    ❗️ Space is equivalent to AND.
    cols Explorer display columns, generally used to specify the display columns of the explorer. Displays system default if not specified.
    Link format: &cols=time,host,service,message
    w Workspace ID, needs to be specified when jumping across workspaces.
    Link format: &w=wksp_40a73c6c2b024301a0b1d139e1234567

    Available Template Variables

    The system provides template variables available for the current chart link by default, such as #{TR}, #{T}, #{T.host}, #{V}, #{V.host}, etc. These can be directly used in link configuration.

    Example

    Take associating and viewing the current workspace CPU monitoring view as an example, the configuration is as follows:

    /scene/dashboard/dashboardDetail?dashboard_id=dsbd_e4313axxxxxxxxxxxxxc4198775e&name=CPU Monitoring View&w=wksp_ed134a648xxxxxxxxxxxxx9a9c6115&time=#{TR}&variable=#{V.host}

    • Link address explanation:
    Link Component Parameter Configuration
    Dashboard Address /scene/dashboard/dashboardDetail
    Dashboard ID dashboard_id=dsbd_e4313axxxxxxxxxxxxxc4198775e
    Dashboard Name name=CPU Monitoring View
    Workspace ID w=wksp_ed134a648xxxxxxxxxxxxx9a9c6115
    Time Variable time=#{TR}
    View Variable variable=#{V.host}
    Note
    • Variables can be entered after the URL link. If the URL link itself already has time variables, tag variables, or view variables, you need to modify them on the existing variables, otherwise conflicts may occur;
    • Multiple parameters are separated by ,, multiple variables are linked with &;
    • The link address supports using relative path addresses.

    Supports three link opening methods:

    • New Page: Open the link in a new page;
    • Current Page: Open the link in the current page;
    • Slide-out Detail Page: Slide out a window on the current page to open the link.

    Supports the following operations on chart links:

    • Enable/Disable Display: Control whether the associated link is displayed on the chart;
    • Edit: Modify an already added link;
    • Delete: Delete the current custom link. Deleted links cannot be recovered, please operate with caution;
    • Restore to Default: Restore modified built-in links to their initial state.

    Feedback

    Is this page helpful? ×