You need to enable JavaScript to run this app.
Torch Log Service

Torch Log Service

Copy page
Download PDF
Summaries of query and analysis charts
Measurement chart
Copy page
Download PDF
Measurement chart
The log service provides a measurement chart to display the results of log query and analysis. This paper introduces the configuration of various chart parameters of the measurement chart.​
diagram description​
A metering chart consists of one or more bar charts that simplify the data by reducing each query field to a single value, allowing you to visually see the proportion of the data in a specific range of individual values. The metrology chart supports a variety of display styles such as basic monochrome, layer discoloration, segmented bar charts and dashboards, and can present a variety of effects with color schemes.​
For the operation steps of adding a metering chart to the dashboard, please refer to Add charts to dashboard.​
Tip​
Before using statistical charts, please read Notice.​
common configuration​
Configures a statistical chart of the specified type globally, with effect for the entire chart range. The general configuration supported by the meter chart is as follows.​
​
configuration item​
​
explain​
panel configuration​
title​
Sets the title of the meter chart.​
​
Show chart title bar​
After checking the Show chart title bar , the title will be displayed in the upper left corner of the meter chart.​
search analysis field​
main field​
Select the field shown in the metering chart to support setting multiple fields.​
​
maximum value​
Sets the maximum value shown in the meter chart.​
  • After turning on the query maximum value by field , select the query field , and the system will use the maximum value of the column as the maximum value.​
  • After turning off Query Maximum by Field , you can customize the maximum value .​
​
minimum value​
Sets the minimum value shown in the meter chart.​
  • After turning on Query by Field Minimum value , select the Query field , and the system will use the minimum value of the column as the minimum value.​
  • After turning off Query Minimum by Field , you can customize the minimum value .​
data configuration​
display content​
The display mode of the measurement chart.​
  • Calculated Value : Shows only the value calculated by the calculated function.​
  • All Values : Shows all values for the specified field in the search analysis results.​
​
calculation function​
When setting the display mode to calculate values , you should also set the calculation function to calculate the search analysis results. For example, if the calculation function is set to the first value , the first value in each search analysis result will be displayed in the measurement chart.​
​
label​
When the display mode is set to calculated values , label information for the measurement chart can be added.​
​
number limit​
When setting the display mode to All values , this parameter controls the number of bars displayed in the meter chart.​
​
Tag source column​
When Show Mode is set to All Values , this parameter is used to set the label of the meter chart.​
Standard configuration​
​
format​
Format numeric fields according to different unit conversion methods.​
​
Preserve decimal point​
Sets the number of digits after the decimal point.​
​
custom unit​
Set the unit of value.​
Measurement chart style​
Chart Type​
Set the style of the meter chart. Supports basic, continuous gradual change, segmented gradual change and dashboards.​
​
layout​
Sets the display mode of each bar chart in the meter chart, and supports setting to landscape, portrait, or adaptive.​
​
rounded corners​
Sets the shape fillet size.​
​
thickness​
When you set the chart type to Basic, Continuous Gradual Change, Segmented Gradual Change, this parameter is used to set the thickness of the bar.​
​
Main field font size​
Sets the font size of the main field.​
​
Label size​
Sets the font size of the label.​
​
Display base color​
When Show base color is checked, the base color is displayed.​
This parameter needs to be set when setting the chart type to basic, continuous gradual change, and segmented gradual change.​
​
title​
When the title is checked, the title of each bar is displayed.​
​
Display percentage​
When Show Percentages is checked, the percentage value for each bar will be displayed.​
Color Configuration​
​
Sets the color scheme of the meter chart.​
  • Threshold : After specifying the threshold point and color, if the actual value of a bar is greater than the threshold point, it is displayed as the corresponding color.​
  • Percentage threshold : After specifying the threshold point and color, if the percentage of a bar is greater than the threshold point, it is displayed as the corresponding color.​
value mapping​
value mapping​
When you click Add Mapping Value and set the mapping method, the Log Service automatically maps the matched content to the specified text.​
link​
​
Support for adding additional links to enrich chart information.​
After setting, the link icon will be displayed in the upper left corner of the chart, and you can click the link icon to view the link content.​
​
field configuration​
After selecting a field name in the field configuration area, you can add a custom style configuration for this field. This configuration only takes effect for the specified field, and other fields still use the general configuration. The configuration items of the field configuration have the same meaning as the general configuration. Please refer to the description of each configuration item common configuration.​
For example, the following example shows adding a field configuration to a healthCnt column.​
​​​
example​
The metric chart shows the number and proportion of health requests for each cluster.​
  • search analysis statement​
  • ​
    * | SELECT __source__, SUM(cnt) as allCnt, SUM(if(status='health', cnt, 0)) as healthCnt FROM( SELECT __source__, status, COUNT(status) as cnt FROM ( SELECT __source__ , if(httpStatusCode>=200,'health','error') as status ) GROUP BY status, __source__) GROUP BY __source__​
    ​
  • chart settings​
  • Main field : Specify as healthCnt . Where healthCnt represents Status equal to the number of health logs.​
  • Maximum value : specified as allCnt . The total value of SUM (cnt) statistics is used as the maximum index of the measurement chart.​
  • Display content : Select all values .​
  • Tag Source Column : Set to __source__ .​
  • statistical chart​
  • ​​​
​
​
Last updated: 2026.09.07 16:34:33