Add Data Source¶
Data source queries are used to read configured external databases or services. You can select an active QueryHub instance, a data source connected through DataFlux Func, or use a dedicated TiDB Cloud Lake connection. Available methods depend on the current version, instance capabilities, and permissions.
For QueryHub, you can select Native Query or DQL Like. Both methods are completed in the input box: for the former, enter SQL or a complete query JSON according to the data source type; for the latter, enter a complete DQL Like expression. Func can reuse connectors or custom scripts. Configuration and result processing requirements vary by method; follow the corresponding guide for the selected data source.
When using QueryHub, in the query area of the chart editing page, click Add Data Source, select an active QueryHub data source, then select a query method and fill in the content. After confirming the preview result, save the chart. For complete steps, see Query in dashboard charts.
