(New) Creating a Dashboard
With a dashboard, different graphs are displayed on the same screen, so you can view metrics or logs comprehensively.
Constraints
- Old dashboards are incompatible with the graph configurations of new dashboards.
- However, new dashboards are compatible with the graph configurations of old dashboards.
Procedure
- Log in to the AOM 2.0 console.
- In the navigation pane on the left, choose Dashboard. Click New Version in the upper right corner of the page.
- Click
next to Dashboard to create a dashboard group.
- Click Add Dashboard in the upper left corner of the list.
- 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: "$# %&'+;<=>?\
Enterprise Project
Enterprise project.
- If you have selected All for Enterprise Project on the global settings page, select one from the drop-down list here.
- If you have already selected an enterprise project on the global settings page, this option will be dimmed and cannot be changed.
Bind to Application
Select an application created in CMDB to bind.
This configuration item is available only when the Application Insights function is enabled. To enable this function, see Configuring AOM Menus.
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. Enter a maximum of 255 characters. The following special characters are not allowed: "$# %&'+;<=>?\
- Click OK.
Adding a Graph to a Dashboard
After a dashboard is created, you can add graphs to the dashboard:
- In the dashboard list, locate the target dashboard.
- Go to the dashboard page, and select the Prometheus instance for which you want to add a graph from the drop-down list.
- 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 (New) Graphs. The data can be metric or log data. Select a graph type as required.
- Adding a metric graph: Set parameters by referring to Table 3 and click Save.
Table 2 Adding a metric graph Parameter
Description
Graph Name
Name of a graph to distinguish it from other graphs. For graph names, variables can be added to dynamically filter graph information. Duplicate names are supported.
Enter a maximum of 255 characters. The following special characters are not allowed: "$# %&'+;<=>?\
Data Source
The default value is Metric Sources.
Graph Type
Options: line, digit, top N, table, bar, and digital line.
How to Add
Add metrics as required. You can select metrics from All metrics or using Prometheus statements.
All metrics
Select target metrics from the metric drop-down list.
- Calculation method:
- Multiple Metrics: Performs calculation for metrics and their conditions separately, and displays the results on the graph.
- Combined Operations: Performs calculation on multiple metrics and their conditions based on expressions, and displays the results on the graph.
- Metric: Select a target metric from the drop-down list. You can also directly enter a metric name in the search box and click Generate. If no metric is reported, configure one.
- Statistical Period: Interval at which metric data is collected. The statistical periods that are available for you to select vary according to the time range.
- Condition: Metric monitoring scope. Each metric condition is in "key:value" format and can be selected from the drop-down list. You can also enter a dimension name and value, and click Generate to add a metric condition. You can also click
and select AND or OR to add more conditions for the metric.
- 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.
- Formatted Legend Name: Use a fixed name or variable as the legend name.
- Format: {{dimension name}}.
- If the displayed legend name is {{dimension name}}, there is no dimension. For example, enter {{hostname}} and a host name will be displayed as the legend name.
- Tables and digit/line graphs do not support Formatted Legend Name.
You can click Add Metric to add more metrics. A maximum of 100 can be added.
Prometheus statement
Add metric data by entering a Prometheus statement related to the metric.
- Prometheus Statement: See Prometheus Statements.
- Formatted Legend Name: Use a fixed name or variable as the legend name. If the displayed legend name is {{dimension name}}, there is no dimension. Format: {{dimension name}}. For example, enter {{hostname}} and a host name will be displayed as the legend name.
To add more metrics, click Add Prometheus Statement. You can add 100 metrics in total.
Graph Settings
On the right of the page, click the down arrow, select a desired graph type from the drop-down list, and set graph parameters (such as the X axis title, Y axis title, and displayed value). For details about the parameters, see Metric Data Graphs.
Statistic
Method used to measure metrics. Options: Avg, Min, Max, Sum, and Samples.
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.
- Calculation method:
- Adding a log graph: Set parameters by referring to Table 3 and click Save.
Table 3 Adding a log graph Parameter
Description
Graph Name
Name 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 Log Sources.
Log Group
Select a desired log group from the drop-down list box.
If there is no log group you want to select, click Add Log Group to create one. For details, see Table 5.
Log Stream
Select a desired log stream from the drop-down list.
If there is no log stream you want to select, click Add Log Stream to create one. For details, see Table 5.
Go to Old Version
Click Back to Old Version to add a log graph of the old version. For details, see Adding a Log Graph.
Time Range
Options: From now, From last, and Specified.
- From now: queries data generated in a time range that ends with the current time, such as the previous 1, 5, or 15 minutes. For example, if the current time is 19:20:31 and 1 hour is selected as the relative time from now, the graphs on the dashboard display the data that is generated from 18:20:31 to 19:20:31.
- From last: queries data generated in a time range (on the hour) that ends with the current time, such as the previous 1 or 15 minutes. For example, if the current time is 19:20:31 and 1 hour is selected as the relative time from last, the graphs on the dashboard display the data that is generated from 18:00:00 to 19:00:00.
- Specified: queries data that is generated in a specified time range.
Refresh Frequency
Interval at which the data is refreshed. Options: Refresh now, Refresh every 30 seconds, Refresh every 1 minute, and Refresh every 5 minutes.
Graph Type
Options: line, digit, table, bar, digital line, pie, and map graphs.
Graph settings
On the right of the page, click the down arrow, select a desired graph type from the drop-down list, and set graph parameters (such as the X axis title, Y axis title, and displayed value). For details about the parameters, see Log Data Graphs.
Interactive mode
Metrics
Use a statistics function on a selected field to calculate your desired metric. You can select an option from the drop-down list. Options: Log count, Aggregation statistics, and Estimation function.
- Log count: count(*), Logs with non-null field values, Logs with non-zero field values, and Logs with different field values
- Aggregation statistics: max(), min(), avg(), sum(), earliest(), and latest().
- Estimation function: Median and Percentile
Alias
Alias of a metric. After setting an alias, it takes precedence.
Conditions
Conditions for filtering metric data. A condition comprises a field and a value. The field can be selected directly from the drop-down list. Multiple conditions can be set using AND or OR.
Group
Group the values by selected field (group by), collect metric statistics by group, and sort the results by order (order by).
Sort
Copy to Syntax Mode
After setting parameters such as Metrics and Conditions in interactive mode, you can preview the search statement. By clicking Copy to Syntax Mode, you can switch to the syntax mode.
Format SQL
Click
to set the formatting SQL statement and reverse formatting SQL statement to optimize the search statement and improve the search efficiency.
Syntax Mode
Enter a statement in the search box to query logs. The search analysis syntax consists of the search statement and SQL analysis statement. The two statements are associated by using the pipe character (|).
- Adding a metric graph: Set parameters by referring to Table 3 and click Save.
- Click Save. The graph is successfully added to the dashboard.
More Operations
After a dashboard is created, you can also perform the operations listed in Table 4.
Operation |
Description |
---|---|
Setting column display |
Click
|
Adding dashboards to favorites |
In the dashboard list, locate a dashboard and click Add to Favorites in the Operation column. |
Moving dashboards to another group |
|
Deleting a dashboard |
|
Changing a dashboard group name |
|
Deleting a dashboard group |
You can delete a dashboard using either of the following methods: Method 1:
Method 2: In the dashboard group list, locate the target dashboard group and choose |
Deleting a graph from a dashboard |
|
Relocating a graph on a dashboard |
|
Full-screen display |
Click a dashboard in the dashboard list to access the dashboard page. In the upper right corner, click |
Exiting the full-screen mode |
Move the cursor to the upper part of the screen and click |
Manual refresh |
Click a dashboard in the dashboard list to access the dashboard page. In the upper right corner, click |
Auto refresh |
Click a dashboard in the dashboard list to access the dashboard page. In the upper right corner, click the arrow next to |
Manually refreshing a graph |
Click the target dashboard, move the cursor to the upper right corner of a graph, and choose |
Modifying a graph |
|
Adding alarm rules |
|
Rotating dashboards |
Click a dashboard in the dashboard list to access the dashboard page. In the upper right corner, click |
Setting a dashboard |
Click a dashboard in the dashboard list to access the dashboard page. In the upper right corner, click |
Setting the query time |
Click a dashboard in the dashboard list to access the dashboard page. In the upper right corner, click
|
Exporting a dashboard |
Click a dashboard in the dashboard list to access the dashboard page. In the upper right corner, click |
Importing a dashboard |
Import the dashboard data in JSON format from a local PC to AOM for analysis. You can import a dashboard using either of the following methods: Method 1: On the Dashboard page, click Import Dashboard. Method 2: In the dashboard group list, locate a target dashboard group and choose Procedure:
|
Exporting a monitoring report |
Click a dashboard to go to its details page. Then click |
Copying a dashboard |
|
Setting a dashboard group |
|
Operation |
Description |
---|---|
Creating a log group |
|
Creating a log stream |
|
Relationship between time ranges and statistical periods (for new dashboards)
In AOM, a maximum of 1,440 data points can be returned for a single metric query. The relationship between the time range and statistical period is as follows:
Maximum time range = Statistical period x 1,440
If you select a time range shorter than or equal to the maximum time range, all the statistical periods that meet the preceding formula can be selected. For example, if you want to query metrics in the last hour, the available statistical periods are 1 minute, and 5 minutes.
For a dashboard, the relationship between the time range and statistical period is shown in the following table.
Type |
Time Range |
Statistical Period |
---|---|---|
From now |
1 minute |
1 minute or 5 minutes |
5 minutes |
||
15 minutes |
||
30 minutes |
||
1 hour |
||
4 hours |
1 minute, 5 minutes, 15 minutes, or 1 hour |
|
1 day |
||
Today |
||
1 week |
1 hour |
|
This week |
||
30 days |
||
This month |
||
Specified |
1 minute, 5 minutes, 15 minutes, or 1 hour |
|
From last |
1 minute |
1 minute or 5 minutes |
15 minutes |
||
30 minutes |
||
1 hour |
||
4 hours |
1 minute, 5 minutes, 15 minutes, or 1 hour |
|
1 day |
||
1 week |
1 hour |
|
30 days |
||
Today |
1 minute, 5 minutes, 15 minutes, or 1 hour |
|
Yesterday |
||
Two days ago |
||
This week |
1 hour |
|
Last week |
||
This month |
||
Last month |
||
Specified |
1 minute, 5 minutes, 15 minutes, or 1 hour |
|
Custom |
Custom |
1 minute, 5 minutes, 15 minutes, or 1 hour |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot