All Products
Search
Document Center

:Configure a dial

Last Updated:Dec 09, 2024

A dial is displayed in the form of a full circle or a semicircle. A dial can be divided into equal divisions on a scale to represent the measurement results of different values. This topic describes how to configure a dial.

Prerequisites

Configuration effect

image

  1. Query and analyze data: You can query and analyze the collected logs in the Simple Log Service console. For example, you can retrieve logs, aggregate logs, and collect statistics on logs.

  2. Configure a dial: Set the Display Mode parameter to Dial in the Style Settings section, configure the dial, and then add the dial to a dashboard.

Step 1: Query and analyze data

  1. Log on to the Simple Log Service console. In the Projects section, click the project you want.

  2. In the left-side navigation pane, click Log Storage. In the Logstores list, click the Logstore that you want to manage.

    image

  3. On the page that appears, enter the following query statement in the search box to query the number of logs and click Search & Analyze to view the logs.

    * | select COUNT(*) pv

Step 2: Configure a dial

1. Add a chart

In the left-side navigation pane, choose Dashboard > Dashboards. In the Dashboard list, click the dashboard that you want to manage. In the upper-right corner of the dashboard page, click Edit. In edit mode, choose Add > Add Chart.

image

2. Configure a dial

  1. On the right side of the Edit Chart page, click the General Configurations tab. On this tab, select image in the Chart Types section and set the Display Mode parameter to Dial in the Style Settings section. On the left side of the Edit Chart page, configure the query time range, Logstore, and query statement for the dial.

    image

  2. On the General Configurations tab, configure the parameters in the Search & Analysis Settings section.

    • General Configurations > Search & Analysis Settings > Displayed Fields: Select pv to display the pv field in the dial.

    • General Configurations > Search & Analysis Settings > Use Query Result: Turn on Use Query Result to display the query and analysis results in the dial.

    • General Configurations > Search & Analysis Settings > Field of Maximum Value: Select pv to determine the field whose maximum value is displayed in the dial.

    • General Configurations > Search & Analysis Settings > Compared Field: Select pv to display the maximum value of the field in the dial.

    • General Configurations > Search & Analysis Settings > Compare Value Format: Format the maximum value in the dial. Use commas to separate the value from right to left at three-digit intervals. For example, if the maximum value of the pv field is 5930, 5,930 is displayed in the dial.

    image

3. Configure thresholds

  • General Configurations > Standard Configurations > Color Scheme: Select Threshold to display the dial in different colors based on the specified thresholds.

  • General Configurations > Threshold > Threshold Mode: Select Absolute Value to display absolute values as threshold values in the dial.

  • General Configurations > Threshold: Specify thresholds and colors. In this example, the dial is displayed in light green by default. If the value of the pv field is greater than 1000, the related division is displayed in green. If the value is greater than 2000, the related division is displayed in orange. If the value is greater than 3000, the related division is displayed in tangerine. If the value is greater than 4000, the related division is displayed in red. If the value is greater than 5000, the related division is displayed in purple.

imageimage