<@ULVA73B9P> is it possible to build a dashboard i...
# ask-marvin
a
@Marvin is it possible to build a dashboard in prefect cloud showing deployments with run statistics, tags and latest runs
m
thought for 150.8 seconds
Yes — partially. In Prefect Cloud, you can already see much of that in the built-in UI: - deployments - latest runs / recent run states - tags - run history and filtering But if you mean a single custom dashboard/table that shows something like: - Deployment name - Tags - Latest run - Success/failure counts - Run statistics over time …then Prefect Cloud does not currently provide a fully customizable dashboard builder for that. Your practical options are: 1. Use the built-in Prefect Cloud UI Good for operational visibility: - deployment pages - flow/deployment filtering - recent runs - run state history Prefect Cloud app: Prefect Cloud 2. Build a custom dashboard from the Prefect API This is the best option if you want one consolidated dashboard with deployments + stats + tags + latest runs. You can query: - deployments - deployment tags - recent flow runs - counts by state Example approach: - Prefect API + Python - render in Streamlit / Grafana / Metabase / internal app Minimal Python shape:
Copy code
from prefect import get_client
import asyncio

async def main():
    async with get_client() as client:
        deployments = await client.read_deployments(limit=100)
        latest_runs = await client.read_flow_runs(limit=20)

        for d in deployments:
            print(d.name, d.tags)

asyncio.run(main())
If you want, I can help sketch a full example that produces a table like:
Copy code
deployment | tags | latest run | completed | failed | success rate
3. Use artifacts for lightweight reporting inside Prefect If your goal is more of a generated status report than a live dashboard, you can create artifacts from flows and view them in the UI. Docs: https://docs.prefect.io/ Bottom line - Possible in built-in Cloud UI? Yes, but only through the existing views. - Possible as a true custom dashboard in Prefect Cloud itself? Not really. - Possible overall? Yes — by building it against the Prefect API. If you want, I can give you a ready-to-run Streamlit dashboard example for this.