cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Dashboard Usage

jdata
Visitor

Hi there,

My team is developing some SQL Dashboards. I would like to know how many people view that dashboard/or at least click to it and then queries triggered.

I found out that there is one endpoint provided by Databricks: List Queries | Query History API | REST API reference | Azure Databricks

As I can see on the UI, that query comes from which Dashboard, but we I call the above API, there's no field like `dashboard_id`. 

Is there anything I missed here

4 REPLIES 4

TakuyaOmi
Contributor III

@jdata 

By enabling system tables, you should be able to retrieve the desired information from the audit logs system table. I hope the following official documentation is helpful:

Audit Logs - Databricks Documentation

Thank you for the response.

But I have one more question: can it be done using API ?

Thanks in advance

jdata
Visitor

My case is:

There are several reports/queries in a dashboard. When I click to one dashboard, it will run all the queries, and that info will be shown in Query History.

In Query History, I can see the detail for each query and also what is the dashboard sticking to it. But when I call the API to get query history, I dont see any field like dashboard id 😕

TakuyaOmi
Contributor III

If your requirement is to retrieve the number of dashboard viewers, you can achieve this using the SQL query described in the previously shared audit logs documentation.

If you prefer to retrieve this information via an API, you can use the Statement Execution API.

As for the List Queries, I couldn’t find any fields related to  dashboard id in its response.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group