{
  "dashboard": {
    "title": "Trustless Bridge Dashboard",
    "panels": [
      {
        "title": "Total Deposits",
        "targets": [
          {
            "expr": "sum(bridge_deposits_total)",
            "legendFormat": "Total Deposits"
          }
        ],
        "type": "graph"
      },
      {
        "title": "Claims Status",
        "targets": [
          {
            "expr": "sum(bridge_claims_total{status=\"submitted\"})",
            "legendFormat": "Submitted"
          },
          {
            "expr": "sum(bridge_claims_total{status=\"challenged\"})",
            "legendFormat": "Challenged"
          },
          {
            "expr": "sum(bridge_claims_total{status=\"finalized\"})",
            "legendFormat": "Finalized"
          }
        ],
        "type": "graph"
      },
      {
        "title": "Active Bonds",
        "targets": [
          {
            "expr": "sum(bridge_bonds_posted_wei) / 1e18",
            "legendFormat": "Total Bonds (ETH)"
          }
        ],
        "type": "graph"
      },
      {
        "title": "Liquidity Pool Status",
        "targets": [
          {
            "expr": "bridge_liquidity_total_wei{asset_type=\"ETH\"} / 1e18",
            "legendFormat": "Total ETH"
          },
          {
            "expr": "bridge_liquidity_pending_claims_wei{asset_type=\"ETH\"} / 1e18",
            "legendFormat": "Pending Claims ETH"
          },
          {
            "expr": "bridge_liquidity_available_wei{asset_type=\"ETH\"} / 1e18",
            "legendFormat": "Available ETH"
          }
        ],
        "type": "graph"
      },
      {
        "title": "Liquidity Ratio",
        "targets": [
          {
            "expr": "bridge_liquidity_ratio{asset_type=\"ETH\"}",
            "legendFormat": "ETH Ratio"
          },
          {
            "expr": "bridge_liquidity_ratio{asset_type=\"WETH\"}",
            "legendFormat": "WETH Ratio"
          }
        ],
        "type": "graph",
        "yaxes": [
          {
            "format": "short",
            "min": 1.0
          }
        ]
      },
      {
        "title": "Challenge Success Rate",
        "targets": [
          {
            "expr": "sum(bridge_challenges_total{result=\"successful\"}) / sum(bridge_challenges_total) * 100",
            "legendFormat": "Success Rate %"
          }
        ],
        "type": "graph"
      },
      {
        "title": "Average Finalization Time",
        "targets": [
          {
            "expr": "avg(bridge_finalization_time_seconds)",
            "legendFormat": "Avg Time (seconds)"
          }
        ],
        "type": "graph"
      },
      {
        "title": "Gas Costs",
        "targets": [
          {
            "expr": "avg(bridge_gas_costs_wei{operation=\"submit_claim\"}) / 1e18",
            "legendFormat": "Submit Claim"
          },
          {
            "expr": "avg(bridge_gas_costs_wei{operation=\"challenge\"}) / 1e18",
            "legendFormat": "Challenge"
          },
          {
            "expr": "avg(bridge_gas_costs_wei{operation=\"finalize\"}) / 1e18",
            "legendFormat": "Finalize"
          }
        ],
        "type": "graph"
      }
    ],
    "refresh": "30s",
    "time": {
      "from": "now-6h",
      "to": "now"
    }
  }
}

