CodyAustinDavis / dbsql_sme

DBSQL SME Repo contains demos, tutorials, blog code, advanced production helper functions and more!
40 stars 16 forks source link

Add DAB for Warehouse SLA Monitoring #10

Open goodwillpunning opened 2 weeks ago

goodwillpunning commented 2 weeks ago

This commit adds an initial Python-template-based Databricks Asset Bundle (DAB) to the Warehouse SLA Monitoring Framework. Having a DAB greatly simplifies the deployment of SLA monitors to target Databricks workspaces.

Also included are README instructions for using bundles to deploy and run an SLA monitor. For example, the following snippet from the DAB README file triggers SLA policy #2 to execute as a notebook task in a Databricks workflow:

   $ databricks bundle run --notebook-params workspace_name=my-db-workspace.cloud.databricks.com,database_name=my_catalog.monitoring,policy_id=2