How to get databricks performance metrics programmatically?

Nandhini_Kumar
New Contributor III

How to retrieve all Databricks performance metrics on an hourly basis. Is there a recommended method or API available for retrieving performance metrics ?