{
  "dashboard": {
    "title": "AS4 Settlement Dashboard",
    "tags": ["as4", "settlement"],
    "timezone": "browser",
    "panels": [
      {
        "id": 1,
        "title": "Message Processing Rate",
        "type": "graph",
        "targets": [
          {
            "expr": "rate(as4_messages_processed_total[5m])",
            "legendFormat": "Messages/sec"
          }
        ]
      },
      {
        "id": 2,
        "title": "Instruction Success Rate",
        "type": "graph",
        "targets": [
          {
            "expr": "rate(as4_instructions_accepted_total[5m]) / rate(as4_instructions_received_total[5m])",
            "legendFormat": "Success Rate"
          }
        ]
      },
      {
        "id": 3,
        "title": "P99 Latency",
        "type": "graph",
        "targets": [
          {
            "expr": "as4_message_latency_p99",
            "legendFormat": "P99 Latency (s)"
          }
        ]
      },
      {
        "id": 4,
        "title": "Active Members",
        "type": "stat",
        "targets": [
          {
            "expr": "as4_members_active",
            "legendFormat": "Active"
          }
        ]
      },
      {
        "id": 5,
        "title": "Certificate Expiration Warnings",
        "type": "stat",
        "targets": [
          {
            "expr": "as4_certificates_expiring_soon",
            "legendFormat": "Expiring Soon"
          }
        ]
      }
    ]
  }
}
