Create Databricks Dashboards on MLFlow Metrics

rahuja
Contributor

Hello

Currently we have multiple ML models running in Production which are logging metrics and other meta-data on mlflow. I wanted to ask is it possible somehow to build Databricks dashboards on top of this data and also can this data be somehow available as databricks tables to do some analysis on it?    

 

 

#machinelearning #mlflow #databricks

rahuja
Contributor

Hello @Retired_mod 
Thanks for responding. I think you  are talking about using the Python API. But we don't want that is it possible since MLFlow also uses an sql table to store metrics. To expose those tables as a part of our meta-store and build dashboard on top of it? We don't want to use compute for accessing data that is already stored in some DB in the backend.

tajamulkhan
Esteemed Contributor

There is now a SQL-based option for this: MLflow system tables. You can use these tables to build dashboards without exporting metrics through the Python API.

The available tables include:

- system.mlflow.experiments_latest for experiment metadata.
- system.mlflow.runs_latest for run details, parameters and aggregated metrics.
- system.mlflow.run_metrics_history for metric values over time.

For example, this query retrieves recent metric history:

SELECT
workspace_id,
experiment_id,
run_id,
metric_name,
metric_time,
metric_step,
metric_value
FROM system.mlflow.run_metrics_history
WHERE metric_time >= current_timestamp() - INTERVAL 7 DAYS
ORDER BY metric_time;

Use this query as an AI/BI dashboard dataset. Filter by experiment, run and metric name, then plot metric_value against metric_time.

A few points to consider:

- The feature is currently in Public Preview.
- Your administrator needs to enable access and grant the required permissions.
- Records are typically available within one hour.
- Data from before 2 September 2025 may not be available, so the original 2024 metrics may be unavailable.
- Dashboard queries still require SQL compute, but you avoid a separate Python extraction job.

Databricks also provides an example dashboard that you can import and adapt.

Official references:

https://docs.databricks.com/aws/en/admin/system-tables/mlflow

https://docs.databricks.com/aws/en/mlflow/build-dashboards