cancel
Showing results for 
Search instead for 
Did you mean: 
Community Discussions
Connect with fellow community members to discuss general topics related to the Databricks platform, industry trends, and best practices. Share experiences, ask questions, and foster collaboration within the community.
cancel
Showing results for 
Search instead for 
Did you mean: 

Cluster compute metrics

User1234
New Contributor II

I want to fetch compute metrics(hardware, gpu and spark) and use them in certain dashboard on Databricks, however i'm not able to fetch them. i have tried GET API request and system tables. The system tables only have CPU utilization and memory utilization per node but i want that on the granular level as shown in the graphs in compute metrics screen. How can i fetch these details and download them in json or csv format?

 

4 REPLIES 4

Kaniz_Fatma
Community Manager
Community Manager

Hi @User1234To fetch compute metrics in Databricks, you can use the native compute metrics tool available in the Databricks UI.

Here’s how you can access and utilize these metrics:

  1. Access Compute Metrics UI:

    • Click on Compute in the sidebar.
    • Choose the specific compute resource (cluster) for which you want to view metrics.
    • Click the Metrics tab.
    • By default, hardware metrics are displayed. To view Spark metrics, click the drop-down menu labeled Hardware and select Spark. If the instance is GPU-enabled, you can also select GPU1.
  2. Granularity and Time Period:

  3. Node-Level Metrics:

  4. Available Hardware Metrics:

    • The following hardware metric charts are available in the compute metrics UI:
      • Server Load Distribution: Shows CPU utilization over the past minute for each node.
      • CPU Utilization: Displays the percentage of time the CPU spent in different modes (e.g., guest, iowait, idle, irq, nice, softirq, steal).
      • Memory Utilization: Provides insights into memory usage.
      • Filesystem Metrics: Includes disk space usage.
      • Network Metrics: Covers network activity.
    • These metrics can help you monitor resource usage and identify performance bottlenecks1.
  5. Exporting Metrics:

    • Unfortunately, the native compute metrics UI does not directly support exporting metrics to JSON or CSV format.
    • However, you can manually record the relevant metrics or use third-party tools to automate data extraction from the UI.

Remember that these metrics provide valuable insights into your cluster’s resource usage, and they can help you optimize performance and troubleshoot errors. If you need more granular data, consider using additional monitoring tools or integrating with exter...

 

Hey thanks for the response. I'm aware that these metrics are available in compute metrics UI but I wanted the data which I can export and use for analysis. is there any way to get the data which is being used to create these graphs, manually recording is difficult because data keeps getting updated every hour. Could you please provide any insights on external tools that can be used to automate data extraction from UI?

DPG1112
New Contributor II

I am also curious to see if there is any alternative to programatically (and not just from the UI) fetch this data. This would be highly valuable. Thanks!

BlakeWood
New Contributor II

Replying for the updates.

Join 100K+ Data Experts: Register Now & Grow with Us!

Excited to expand your horizons with us? Click here to Register and begin your journey to success!

Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!