Connecting to Grafana
- Create a data source.

Set the data source type to SQLite.

Link the parsed SQLite database file profiler.db to Grafana and note down the data source UID.

- Create a dashboard and import a line chart.
Find the visualization file profiler_visualization.json in /xxx/Ascend/cann-{version}/tools/msserviceprofiler/python/ms_service_profiler/views/ and change uid in datasource to the UID recorded in step 2.
{version} indicates the CANN software package version. CANN 8.1.RC1 and later versions are supported.

uid at the end of the .json file uniquely identifies the dashboard and does not need to be modified. title specifies the dashboard name, which is defaulted to Profiler Visualization.

- Create a dashboard and import the modified .json file. You can find the dashboard with the corresponding name in Dashboards.



Parent topic: Grafana Visualization