Skip to content

Custom Links


Custom links are added to charts. Based on text box input and parameter configurations, the final chart-related link address is generated to view relevant data. Once custom links are added, they are displayed by default and can be directly viewed in the chart preview.

Getting Started

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

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

The system provides preset links, allowing you to directly select the data type to associate without manually entering the full path.

Associated Data Type Preset Link
LOG /logIndi/log/all
APM /tracing/link/all
Incident /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 links, the system provides corresponding parameters.

Parameter
Description
time Time filter, can be used in Explorer and Dashboard.
Link format:
  • Pass query time through template variables: &time=#{TR}
  • Query the last 15 minutes: &time=15m
  • Set specific start and end times: &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 in Explorer. If not specified, the system default is displayed.
    Link format: &cols=time,host,service,message
    w Workspace ID, required when jumping across workspaces.
    Link format: &w=wksp_40a73c6c2b024301a0b1d139e1234567

    Available Template Variables

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

    Example

    Taking the association of 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 already contains time variables, tag variables, or view variables, modifications need to be made on the existing variables, otherwise conflicts may occur;
    • Multiple parameters are separated by ,, and multiple variables are linked by &;
    • The link address supports using relative path addresses.

    Three link opening methods are supported:

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

    The following operations are supported for chart links:

    • Enable/Disable Display: Control whether the associated link is displayed on the chart;
    • Edit: Modify the added link;
    • Delete: Delete the current custom link. Once deleted, it cannot be recovered. Please proceed with caution;
    • Restore to Default: Restore the modified built-in link to its initial state.

    Feedback

    Is this page helpful? ×