All Products
Search
Document Center

Simple Log Service:Set a table threshold

Last Updated:Oct 28, 2024

When monitoring the service load on the dashboard, a high number of requests or long response time indicates a need for optimization. You can set table thresholds to identify areas for improvement.

Prerequisites

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 you want.

    image

  3. Enter the query and analysis statement, and then click Last 15 Minutes to set the time range for your query and analysis.

    Example

    * | select request_url,count(*) as pv group by request_url order by pv 

Step 2: Add a table

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

    image

  2. On the General Configurations tab, click the Table Pro icon in the Chart Types section. On the Search & Analysis tab, select Logstore (SQL) and choose the logstore you want, and enter the query statement. Select a time range, such as Last 15 Minutes, and click OK.

    image

Step 3: Set a table threshold

  1. On the Field Configuration tab, click Add Field, and then select the column name from the drop-down list.

  2. Click Add Configuration, select Standard Configurations > Color Scheme, and then select Threshold.

  3. Click Add Configuration, select Field/Column Settings > Cell Display Mode, and then select Full LineBackground Highlight.

  4. Click Add Configuration, select Threshold > Threshold, click Add Threshold, and set the threshold to your desired value.

The settings and results are shown in the figure below.

image