Verify the output

Your dashboard.json file should now exist in your project directory. Before deploying it, verify that the JSON is valid and contains the expected structure.

To verify your dashboard JSON, complete the following steps:

  1. Check that dashboard.json exists:

    Bash
    ls -la dashboard.json
  2. Inspect the JSON structure. Look for these key fields:

    Bash
    cat dashboard.json | python3 -m json.tool | head -30

    You should see:

    • "title": "My SDK Dashboard" (the dashboard title)
    • "uid": "my-sdk-dashboard" (the stable identifier)
    • "tags": ["generated", "foundation-sdk"] (your tags)
    • "panels": [...] (an array containing your two panels)
  3. Confirm the panels are present by checking for their titles in the JSON:

    Bash
    grep '"title"' dashboard.json

    Expected output should include:

    "title": "My SDK Dashboard"
    "title": "Version"
    "title": "Request Rate"

What to check

FieldExpected value
titleMy SDK Dashboard
uidmy-sdk-dashboard
tags[“generated”, “foundation-sdk”]
panels length2
Panel 1 typestat
Panel 2 typetimeseries

If all fields match, your dashboard JSON is valid and deployment-ready. You can commit this file to Git, import it into Grafana manually, or deploy it with Terraform (covered in the next learning path).

Were you successful?


page 7 of 8