# learnwithray/databricks-asset-bundle-databricks-app architecture

> Architecture diagram of the GitHub repository learnwithray/databricks-asset-bundle-databricks-app, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/learnwithray/databricks-asset-bundle-databricks-app
- Repository: https://github.com/learnwithray/databricks-asset-bundle-databricks-app

## Overview

This repository provides a Streamlit dashboard for monitoring Databricks Apps, backed by metadata collected into a Delta table. The user workflow is to open the dashboard, load metadata through a SQL warehouse, filter apps, and inspect status metrics, charts, and records. A separate notebook populates the table from the Databricks Apps API. The dashboard implementation was sampled; ingestion behavior and deployment details are documented but not sampled, so those connections rely on the README.

Main entry points: [`src/databricks_apps_monitoring/app.py`](https://github.com/learnwithray/databricks-asset-bundle-databricks-app/blob/main/src/databricks_apps_monitoring/app.py) (Streamlit dashboard), [`notebooks/populate_apps_metadata.ipynb`](https://github.com/learnwithray/databricks-asset-bundle-databricks-app/blob/main/notebooks/populate_apps_metadata.ipynb) (Populate metadata)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_dashboard["Dashboard"]
  node_dashboard_app["Streamlit dashboard<br/>[app.py]"]
  node_data_load["Load app metadata<br/>[app.py]"]
  node_filter_metrics["Filter and KPIs<br/>[app.py]"]
  node_visualization["Charts and records<br/>[app.py]"]
end

subgraph group_ingestion["Metadata Ingestion"]
  node_populate_notebook["Populate metadata"]
end

subgraph group_platform["Databricks Data Platform"]
  node_apps_api["Databricks Apps API"]
  node_sql_warehouse["SQL warehouse"]
  node_metadata_table[("Apps metadata table")]
end

node_user(("Dashboard user"))

node_user -->|"opens"| node_dashboard_app
node_dashboard_app -->|"loads data"| node_data_load
node_data_load -->|"queries"| node_sql_warehouse
node_data_load -->|"selects"| node_metadata_table
node_dashboard_app -->|"filters and counts"| node_filter_metrics
node_dashboard_app -->|"renders"| node_visualization
node_populate_notebook -->|"collects metadata"| node_apps_api
node_populate_notebook -->|"populates"| node_metadata_table

click node_dashboard_app "https://github.com/learnwithray/databricks-asset-bundle-databricks-app/blob/main/src/databricks_apps_monitoring/app.py"
click node_data_load "https://github.com/learnwithray/databricks-asset-bundle-databricks-app/blob/main/src/databricks_apps_monitoring/app.py"
click node_filter_metrics "https://github.com/learnwithray/databricks-asset-bundle-databricks-app/blob/main/src/databricks_apps_monitoring/app.py"
click node_visualization "https://github.com/learnwithray/databricks-asset-bundle-databricks-app/blob/main/src/databricks_apps_monitoring/app.py"
click node_populate_notebook "https://github.com/learnwithray/databricks-asset-bundle-databricks-app/blob/main/notebooks/populate_apps_metadata.ipynb"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_dashboard_app,node_data_load,node_filter_metrics,node_visualization,node_user toneBlue
class node_populate_notebook toneAmber
class node_apps_api,node_sql_warehouse,node_metadata_table toneMint
```

## Components

### Dashboard

- [Streamlit dashboard](https://github.com/learnwithray/databricks-asset-bundle-databricks-app/blob/main/src/databricks_apps_monitoring/app.py): `src/databricks_apps_monitoring/app.py`
- [Load app metadata](https://github.com/learnwithray/databricks-asset-bundle-databricks-app/blob/main/src/databricks_apps_monitoring/app.py): `src/databricks_apps_monitoring/app.py`
- [Filter and KPIs](https://github.com/learnwithray/databricks-asset-bundle-databricks-app/blob/main/src/databricks_apps_monitoring/app.py): `src/databricks_apps_monitoring/app.py`
- [Charts and records](https://github.com/learnwithray/databricks-asset-bundle-databricks-app/blob/main/src/databricks_apps_monitoring/app.py): `src/databricks_apps_monitoring/app.py`

### Metadata Ingestion

- [Populate metadata](https://github.com/learnwithray/databricks-asset-bundle-databricks-app/blob/main/notebooks/populate_apps_metadata.ipynb): `notebooks/populate_apps_metadata.ipynb`

### Databricks Data Platform

- **Databricks Apps API**
- **SQL warehouse**
- **Apps metadata table**

### Other components

- **Dashboard user**

## Connections

- Dashboard user → Streamlit dashboard: opens (evidence: `README.md`)
- Streamlit dashboard → Load app metadata: loads data (evidence: `src/databricks_apps_monitoring/app.py`)
- Load app metadata → SQL warehouse: queries (evidence: `src/databricks_apps_monitoring/app.py`)
- Load app metadata → Apps metadata table: selects (evidence: `src/databricks_apps_monitoring/app.py`)
- Streamlit dashboard → Filter and KPIs: filters and counts (evidence: `src/databricks_apps_monitoring/app.py`)
- Streamlit dashboard → Charts and records: renders (evidence: `src/databricks_apps_monitoring/app.py`)
- Populate metadata → Databricks Apps API: collects metadata (evidence: `README.md`)
- Populate metadata → Apps metadata table: populates (evidence: `README.md`)
