A dial displays a metric on a circular or semi-circular scale, similar to a physical gauge.
Prerequisites
-
You have collected log data. For more information, see Collect text logs from an instance.
-
You have created an index. For more information, see Create an index.
-
You have created a dashboard. For more information, see Quickly create a dashboard.
Overview

-
Query and analyze data: You can query and analyze logs in the console. This includes log searches, aggregations, and statistical analysis.
-
Configure the dial: Configure a gauge chart, set its style to a dial, and add it to your dashboard.
Step 1: Query and analyze data
Log on to the Simple Log Service console. In the Projects section, click the project you want.

-
In the left-side navigation pane, click Log Storage. On the Logstores tab, click the target Logstore.

-
Enter the following query statement to count the number of logs, and click Search & Analyze.
* | select COUNT(*) pv
Step 2: Configure the dial
1. Add a new chart
In the left-side navigation pane, choose . On the Dashboards page, click the target dashboard. In the upper-right corner, click Edit. In edit mode, click .

2. Configure the dial
-
On the right side of the page, on the General Configurations tab, select the gauge chart icon
from Chart Types and select dial from Style Settings. On the left side of the page, configure the time range, Logstore, and query statement.
-
On the General Configurations tab, configure the parameters in the Search & Analysis Settings section.
-
: Select the
pvfield to display its value on the dial. -
: Displays the data from the query results on the dial.
-
: Select the
pvfield. The maximum value of this field sets the upper limit of the dial's scale. -
: Select the
pvfield. The value of this field is displayed as the current reading on the dial. -
: Formats the value displayed on the dial. For example, you can use a comma as a thousands separator to format
5930as5,930.

-
3. Configure thresholds
-
: Makes the dial change color based on the configured thresholds.
-
: Select Absolute Value to set thresholds based on specific numeric values.
-
: Set the thresholds and their corresponding colors. For example, you can set the dial's default color to light green and have it change as the
pvvalue exceeds specific thresholds: green for >1000, orange for >2000, tangerine for >3000, red for >4000, and purple for >5000.

