Skip to main content

Dashboard Details

Overview

The Dashboard Details page is used to view and edit dashboard content. It supports two modes: View Mode (read-only) and Edit Mode (visual editing).

Dashboard Details page

Mode Switching

The Dashboard Details page opens in View Mode by default. Click the "Edit" button in the top toolbar to switch to Edit Mode, and click "Exit Edit" to return to View Mode. If there are unsaved changes when switching, the system will prompt for confirmation.

View Mode Features

Dashboard Display

In View Mode, the dashboard displays the following:

  • Layout: All widgets displayed according to the saved layout
  • Data: Real-time data fetched from data sources
  • Charts: Visual content such as charts and tables
  • Title: Dashboard title

Interactive Features

Some widgets in View Mode support the following interactions:

  • Data Tooltips: Hover to display data details
  • Legend Filtering: Click chart legends to show or hide corresponding data series (e.g., pie charts, donut charts)
  • Refresh: Click the more actions button on the widget card and select "Refresh" to re-fetch data for that widget

Edit Mode Features

Dashboard Editor

In Edit Mode, the dashboard editor provides the following features:

Canvas Area

The canvas is the main editing area of the dashboard:

  • Drag-and-Drop Layout: Drag widgets to adjust positions
  • Resize: Drag borders to adjust widget size
  • Grid Alignment: Automatically align to the grid for easy layout

Component Library

The component library contains available widget types:

Chart Types:

WidgetDescription
Metric CardSingle value display with trend indicator support
Bar ChartVertical bar chart, suitable for categorical data comparison
Horizontal Bar ChartHorizontal bar chart, suitable for categorical data comparison
Pie ChartPie chart, suitable for showing proportions of categorical data
Donut ChartDonut chart, a pie chart with a hollow center
TreemapHierarchical treemap, suitable for displaying nested categorical data

View Types:

WidgetDescription
Data TableTabular data display with pagination support

Widget Operations

Add a Widget

  1. Find the desired widget type in the component library
  2. Drag the widget to the canvas area
  3. Release the mouse to complete the addition

Component Settings Panel

When a widget is selected, the component settings panel is displayed on the right:

Top Form Fields:

  • Widget Type: Select the widget type
  • Name: Unique identifier for the widget
  • Title: Display title for the widget
  • Description: Description of the widget's purpose

Collapsible Panels:

  • Data Source Settings: Configure data source, grouping, and aggregation
  • Display Settings: Chart and data display style settings

Delete a Widget

  1. Select the widget you want to delete on the canvas
  2. Click the delete button in the upper-right corner of the widget card
  3. Confirm the deletion

Adjust Widget Position

  1. Select the widget you want to move on the canvas
  2. Drag the widget to the target position
  3. Release the mouse to complete the move

Adjust Widget Size

  1. Select the widget you want to resize on the canvas
  2. Drag the widget's border or corner
  3. Release the mouse when the desired size is reached

Data Source Settings

Data Source Types

The dashboard supports the following data source types:

CI Instances

Query CI instance data from the CMDB, supporting grouping and aggregation by type:

FieldDescription
CI TypeSelect the CI type to query
Group ByGroup results by field. Select "CI Type" to group by CI type, or specify an attribute name for custom grouping
Aggregation FunctionAggregation method applied to grouped data. Supports: Count, Average, Minimum, Maximum, Sum
Aggregation AttributeWhen using Average, Minimum, Maximum, or Sum functions, specify the attribute to aggregate

When the aggregation function is "Count", no aggregation attribute is needed. For other aggregation functions, an aggregation attribute must be specified.

CI and Relationship Models

Query the number of model definitions in the CMDB, grouped by type:

FieldDescription
CI and Relationship ModelsFilter class definitions by type. Options: CI Types, Relationship Types, All

Data Source Configuration Steps

  1. Select the widget to configure
  2. Expand "Data Source Settings" in the right component settings panel
  3. Select the data source type
  4. Configure the corresponding parameters based on the data source type
  5. Save the configuration

Save and Cancel

Save Dashboard

After modifying a dashboard, you need to save to persist the changes:

  1. Click the "Save" button in the top toolbar
  2. The system validates the dashboard configuration
  3. If validation passes, it is saved to the database
  4. A save success message is displayed

Exit Edit Mode

To discard unsaved changes:

  1. Click the "Exit Edit" button
  2. If there are unsaved changes, the system displays a confirmation dialog
  3. Click "OK" to discard changes and return to View Mode
  4. Click "Cancel" to return to continue editing

Common Scenarios

Scenario 1: Create a Computing Resources Dashboard

Business Need: Create a dashboard that displays an overview of computing resources.

Steps:

  1. Click the "Create Dashboard" button
  2. Fill in the basic information:
    • Name: computer-overview
    • Display Name: Computing Resources
    • Description: Computing resources overview
  3. After entering the editor, add widgets:
    • Add a metric card, data source "CI Instances", CI type "Computer", aggregation function "Count"
    • Add a pie chart, data source "CI Instances", CI type "Computer", group by "OS Family", aggregation function "Count"
    • Add a bar chart, data source "CI Instances", CI type "Computer", group by "Manufacturer", aggregation function "Average", aggregation attribute "CPU Count"
  4. Adjust the layout and save

Scenario 2: Clone and Modify an Existing Dashboard

Business Need: Create a variant based on an existing dashboard.

Steps:

  1. Select the dashboard you want to clone in the dashboard list
  2. Click the "Clone Dashboard" button
  3. Modify the cloned information and click "OK" to complete the cloning
  4. Open the cloned dashboard, switch to edit mode, modify, add, or remove widgets, then save after editing

Expected Result:

  • An independent copy of the dashboard is created
  • Modifying the cloned version does not affect the original dashboard