Chart inspector

Multiple charts that are slow to load and process data may slow down the dashboard as a whole. You can analyze chart performance using the inspector.

Chart inspector is a DataLens tool that helps you diagnose issues when loading data and rendering them in your browser. You can use it to learn why your chart is slow or optimize data fetching and chart rendering.

​To open the chart inspector, click in the top-right corner of the chart and select Inspector.

Sample chart inspector

image

At the top of the inspector window, you can find the execution speed information for basic operations. Values above the optimal level are highlighted in either orange or red. To get recommendations for optimizing a measure, hover over the question mark next to its name.

Basic measures:

  • Config resolving: Time to load chart configuration and generate a relevant request to the source. This measure is solely influenced by the service's internal logic. If the values are high (red), try reloading the chart or opening it later.

  • Data loading: Time to execute a request in the source and transfer data to DataLens. Typically, it is the key measure in the overall chart execution time. To improve this measure, consider the following:

    • Choice of data source: Source DBMS must be calculated to support analytical workloads.
    • Source physical structure: Make efficient use of indexes, partitioning, and sorting, choose optimal table and data types.
    • Resources (RAM/CPU) allocated to the source: These must match the data volume and number of concurrent users.
    • Complexity of analytical computations: In some cases, it makes sense to simplify requests and use pre-processed data in the source.
  • Execution: Time to process data received from the source in DataLens. Try to transfer data processing from DataLens to the source side as much as possible.

  • Rendering: Chart data render time. When dealing with large volumes of output data, use filters, groupings, or pagination to limit the displayed dataset.

For Table and Pivot table charts, the Columns / Rows measure is also displayed, which represents the number of table columns and rows.

The inspector also displays source request IDs and trace IDs.

The Data sources section displays information about the sources used in a chart:

  • Source name.
  • Link to source.
  • Request body in JSON format.
  • SQL query text sent to source (only if the SQL query is successful and its results are rendered in the chart).

See also

Previous