Updated on 2024-04-15 GMT+08:00

Creating a Dashboard

With a dashboard, different graphs (such as line graphs and digit graphs) are displayed on the same screen, so you can view metric data comprehensively.

You can add key resource metrics to a dashboard and monitor them in real time. You can also compare the same metric of different resources on one screen. In addition, by adding common O&M metrics to a dashboard, you do not need to reselect them when re-opening the monitoring center during routine O&M.

Precautions

  • Preset dashboard templates are saved in the built-in group, including the cloud service and application templates. Preset dashboards cannot be deleted. Their groups cannot be changed. Dashboard templates cannot be created.
  • Up to 50 dashboard groups can be created in a region.
  • Up to 500 dashboards can be created in a region.
  • A maximum of 30 graphs can be added to a dashboard.
  • A maximum of 12 resources can be added to a digit graph. Only one resource can be displayed. By default, the first resource is displayed.
  • A maximum of 10 threshold rules can be added to a threshold status graph.
  • A maximum of 10 hosts can be added to a host status graph.
  • A maximum of 10 components can be added to a component status graph.

Creating a Dashboard

  1. On the menu bar, choose Monitoring Center.
  2. In the navigation pane, choose Dashboard.
  3. Click next to Dashboard to create a dashboard group.
  4. Click Add Dashboard in the upper left corner of the list.
  5. In the displayed dialog box, set parameters.

    Table 1 Parameters for creating a dashboard

    Parameter

    Description

    Dashboard Name

    Name of a dashboard. Enter a maximum of 255 characters. The following special characters are not allowed: "$# %&'+;<=>?\

    Group Type

    Options: Existing and New.

    • Existing: Select an existing dashboard group from the drop-down list.
    • New: Enter a dashboard group name to create one.

  6. Click OK.

Adding a Graph to a Dashboard

  1. In the navigation pane, choose Dashboard.
  2. In the dashboard list, locate the target dashboard.
  3. Go to the dashboard page, and select the Prometheus instance for which you want to add a graph from the drop-down list.
  4. Go to the dashboard page. Click Add Graph or in the upper right corner to add a graph to the dashboard. For details about the graphs that can be added to the dashboard, see Graph Description. The data can be metric or system data. Select a graph as required.

    Table 2 Parameters for adding a graph

    Data Source

    Adding Mode

    Scenario

    Metric Sources

    See Add a metric graph.

    Monitors infrastructure metrics.

    System Graphs

    See Add a system graph.

    Monitors service alarms, or threshold, host, or component status.

    • Add a metric graph. Set parameters by referring to Table 3. Then, click Add to Dashboard.
      Table 3 Adding a metric graph

      Parameter

      Description

      Graph Title

      Title of a graph to distinguish it from other graphs.

      Enter a maximum of 255 characters. The following special characters are not allowed: "$# %&'+;<=>?\

      Data Source

      Click Metric Sources and select metric data as the source.

      Graph Type

      Options: line, digit, top N, table, bar, and digital line.

      Metric List

      Add metrics as required. There are four modes to add metrics:

      • Metric type:
      • All metrics: Select desire metrics from all metrics. When this mode is selected, enter keywords to search for metrics.
      • Resource type: Select your target resource from the resource tree and select a metric. In this mode, you can select the same metric of multiple resources at the same time.
      • Prometheus statement: Enter a Prometheus command and select your target metric. For details, see Prometheus Statements.

      Click Add Metric to add up to 12 metric data records.

      NOTE:
      • When All metrics is selected, enter keywords to search for metrics.
      • Scope: Metric monitoring scope. The scope is in the key-value pair format. Directly select an option from the drop-down list or use AND, OR, and NOT to specify scopes for metrics.
      • Group Condition: Aggregate metric data by the specified field and calculate the aggregation result. Options: Not grouped, avg by, max by, min by, and sum by. For example, avg by clusterName indicates that metrics are grouped by cluster name, and the average value of the grouped metrics is calculated and displayed in the graph.

      Graph Settings

      Configure the graph settings by referring to Metric Data Graphs (Line/Digit/Top N/Table/Bar/Digital Line Graphs).

      Statistic

      Method used to measure metrics. Options: Avg, Min, Max, Sum, and Samples.

      Statistical Period

      Interval at which metric data is collected.

      The available statistical period options vary according to the time range you select. For details, see What Is the Relationship Between the Time Range and Statistical Period?.

      Time Range

      Time range in which metric data is collected. Options: Last 30 minutes, Last hour, Last 6 hours, Last day, Last week, and Custom.

      Refresh Frequency

      Interval at which the metric data is refreshed. Options: Refresh manually, 30 seconds auto refresh, 1 minute auto refresh, and 5 minutes auto refresh.

    • Add a system graph. Set parameters by referring to Table 4. Then, click Add to Dashboard.

      Table 4 Adding a system graph

      Parameter

      Description

      Graph Title

      Title of a graph, which is used to distinguish it from other graphs.

      Enter a maximum of 255 characters. The following special characters are not allowed: "$# %&'+;<=>?\

      Data Source

      Click the System Graphs tab and then select Alarm Statistics, Threshold Status, Host Status, or Component Status as the data source.

      Graph Settings

      • Alarm Statistics: Set the graph by referring to Alarm Statistics Graphs (Ring).
      • Threshold Status: Select up to 10 threshold rules from the threshold rule list.
        The selected threshold data will be displayed in a table.
        NOTE:

        Ensure that metric alarm rules have been created. Otherwise, threshold status graphs cannot be added.

      • If you select Host Status, select target hosts from the application tree. Up to 10 host monitoring data records can be added.
      • If you select Component Status, select target components from the application tree. Up to 10 component data records can be added.

  5. Click . The graph is successfully added to the dashboard.

More Operations

After a dashboard is created, you can also perform the operations listed in Table 5.

Table 5 Related operations

Operation

Description

Setting column display

Click in the upper right corner of the dashboard list and select or deselect the columns to display.

Adding dashboards to favorites

Locate a dashboard and click in the Operation column.

Migrating dashboards to another group

  • Migrating a dashboard: Select a dashboard and click in the Operation column.
  • Migrating dashboards in batches: Select dashboards. In the displayed dialog box, click Migrate Group.

Deleting a dashboard

  • Deleting a dashboard: Select a dashboard and click in the Operation column.
  • Deleting dashboards in batches: Select dashboards. In the displayed dialog box, click Delete.

Changing a dashboard group name

  1. In the dashboard list, click a dashboard name.
  2. Go to the dashboard page and click a dashboard name in the upper left corner.
  3. Move the cursor to the target dashboard group, click , and choose Modify to change the group name.

Deleting a dashboard group

  1. In the dashboard list, click a dashboard name.
  2. Go to the dashboard page and click a dashboard name in the upper left corner.
  3. Move the cursor to the target dashboard group, click , and choose Delete.
  4. In the displayed dialog box, click OK.

Removing a graph from a dashboard

  1. Select the target dashboard, click in the upper right corner of the Dashboard page, move the cursor to the upper right corner of a graph, click , and select Remove from the drop-down list.
  2. Click to delete the graph.

Relocating a graph on a dashboard

  1. Select the target dashboard, click in the upper right corner of the Dashboard page, move the cursor to the target graph, and move it to any position in the dashboard.
  2. Click to adjust the current graph layout.

Full-screen display

Select the target dashboard and click in the upper right corner of the Dashboard page to view the dashboard in full screen.

Exiting the full-screen mode

Move the cursor to the upper part of the screen and click or , or press Esc on the keyboard.

Manual refresh

Select the target dashboard and click in the upper right corner of the Dashboard page and manually refresh the current page.

Auto refresh

Select the target dashboard and click the arrow next to in the upper right corner of the Dashboard page and enable auto refresh.

Manually refreshing a single graph

Select the target dashboard, move the cursor to the upper right corner of a graph, click , and select Refresh from the drop-down list to manually refresh the current graph.

Modifying a graph

  1. Select the target dashboard, move the cursor to the upper right corner of a graph, click , and choose Modify to modify the graph. For details, see Adding a Graph to a Dashboard.
  2. Modify parameters and click OK.
  3. Click in the upper right corner of the Dashboard page to save the modification.

Displaying a Graph in Full Screen

Select the target dashboard, move the cursor to the upper right corner of a graph, click , and select Full Screen from the drop-down list.

Exiting the full-screen mode

Move the cursor to the upper part of the screen and click , or click and select Exit Full Screen from the drop-down list, or press Esc on the keyboard to exit the full-screen mode.

Rotating dashboards

Click a target dashboard and click in the upper right corner of the Dashboard page. For details, see Setting the Full-Screen Online Duration.

Setting the query time

Select the target dashboard. In the upper right corner of the Dashboard page, click the drop-down list next to and select Last 30 minutes, Last hour, Last 6 hours, Last day, Last week, or Custom from the drop-down list. If you select Custom, select the start time in the calendar that is displayed. The time can be accurate to seconds. Then click OK, so that you can query data in the dashboard based on the selected time range.

Exporting a monitoring report

Click a dashboard to go to its details page. Then click in the upper right corner to export a CSV file to your local PC.