{
  "uid": "fak-dogfood-slow-requests",
  "title": "FAK Dogfood Slow Requests",
  "description": "Focused /v1/messages latency, status, inflight, and kernel activity for Claude Code dogfood sessions against slow local models. The timeseries panels filter route=\"/v1/messages\", so they read No data until a Claude Code session drives the gateway; the /v1/fak/syscall smoke request does not appear here. See the First run note at the top.",
  "tags": [
    "fak",
    "dogfood",
    "claude",
    "slow-requests"
  ],
  "editable": true,
  "fiscalYearStartMonth": 0,
  "graphTooltip": 1,
  "schemaVersion": 39,
  "version": 1,
  "refresh": "10s",
  "time": {
    "from": "now-1h",
    "to": "now"
  },
  "timepicker": {},
  "links": [],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": {
          "type": "grafana",
          "uid": "-- Grafana --"
        },
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "templating": {
    "list": [
      {
        "name": "DS_PROMETHEUS",
        "label": "Prometheus",
        "type": "datasource",
        "query": "prometheus",
        "current": {},
        "hide": 2,
        "refresh": 1,
        "regex": "",
        "options": [],
        "includeAll": false,
        "multi": false
      }
    ]
  },
  "panels": [
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_PROMETHEUS}"
      },
      "title": "First run: this dashboard needs Claude Code traffic",
      "description": "Why this dashboard reads No data until a Claude Code session drives /v1/messages, and how to populate it.",
      "type": "text",
      "id": 52,
      "gridPos": {
        "h": 5,
        "w": 24,
        "x": 0,
        "y": 0
      },
      "fieldConfig": {
        "defaults": {},
        "overrides": []
      },
      "options": {
        "mode": "markdown",
        "content": "Every latency, status, slow-request, and in-flight panel here filters `route=\"/v1/messages\"` - **Claude Code traffic**. The `tools/grafana/up.sh` next-step hint drives `/v1/fak/syscall`, which does NOT appear on this route, so a fresh stack shows this dashboard almost entirely **No data**. Filters `route=\"/v1/messages\"` (Claude Code traffic). Drive them by pointing a Claude Code session at `fak serve`; the `/v1/fak/syscall` smoke request does not appear here.\n\nThe Scrape and Gateway up tiles populate immediately (they are route-agnostic). The Kernel activity panels at the bottom drop the route filter, so they light up on any gateway traffic - including the syscall smoke request."
      },
      "pluginVersion": "11.5.2"
    },
    {
      "type": "row",
      "title": "Dogfood health",
      "id": 53,
      "collapsed": false,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 5
      },
      "panels": []
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_PROMETHEUS}"
      },
      "title": "Scrape",
      "description": "Prometheus scrape health for the fak gateway.",
      "type": "stat",
      "id": 54,
      "gridPos": {
        "h": 4,
        "w": 4,
        "x": 0,
        "y": 6
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [
            {
              "type": "value",
              "options": {
                "0": {
                  "text": "DOWN",
                  "color": "red",
                  "index": 0
                },
                "1": {
                  "text": "UP",
                  "color": "green",
                  "index": 1
                }
              }
            }
          ],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "red",
                "value": null
              },
              {
                "color": "green",
                "value": 1
              }
            ]
          },
          "unit": "short"
        },
        "overrides": []
      },
      "options": {
        "colorMode": "value",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "textMode": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        }
      },
      "pluginVersion": "11.5.2",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_PROMETHEUS}"
          },
          "expr": "up{job=\"fak_gateway\"}",
          "refId": "A"
        }
      ]
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_PROMETHEUS}"
      },
      "title": "Gateway up",
      "description": "Self-reported gateway liveness.",
      "type": "stat",
      "id": 55,
      "gridPos": {
        "h": 4,
        "w": 4,
        "x": 4,
        "y": 6
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "red",
                "value": null
              },
              {
                "color": "green",
                "value": 1
              }
            ]
          },
          "unit": "short"
        },
        "overrides": []
      },
      "options": {
        "colorMode": "value",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "textMode": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        }
      },
      "pluginVersion": "11.5.2",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_PROMETHEUS}"
          },
          "expr": "fak_gateway_up",
          "refId": "A"
        }
      ]
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_PROMETHEUS}"
      },
      "title": "Messages in flight",
      "description": "/v1/messages requests currently executing in the gateway. Filters `route=\"/v1/messages\"` (Claude Code traffic). Drive them by pointing a Claude Code session at `fak serve`; the `/v1/fak/syscall` smoke request does not appear here.",
      "type": "stat",
      "id": 56,
      "gridPos": {
        "h": 4,
        "w": 4,
        "x": 8,
        "y": 6
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "yellow",
                "value": 1
              },
              {
                "color": "red",
                "value": 3
              }
            ]
          },
          "unit": "short"
        },
        "overrides": []
      },
      "options": {
        "colorMode": "value",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "textMode": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        }
      },
      "pluginVersion": "11.5.2",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_PROMETHEUS}"
          },
          "expr": "fak_gateway_inflight_requests_by_route{job=\"fak_gateway\",route=\"/v1/messages\"} or vector(0)",
          "refId": "A"
        }
      ]
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_PROMETHEUS}"
      },
      "title": "Oldest in-flight",
      "description": "Age of the oldest currently-running gateway request.",
      "type": "stat",
      "id": 57,
      "gridPos": {
        "h": 4,
        "w": 4,
        "x": 12,
        "y": 6
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "yellow",
                "value": 60
              },
              {
                "color": "red",
                "value": 300
              }
            ]
          },
          "unit": "s"
        },
        "overrides": []
      },
      "options": {
        "colorMode": "value",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "textMode": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        }
      },
      "pluginVersion": "11.5.2",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_PROMETHEUS}"
          },
          "expr": "fak_gateway_inflight_max_age_seconds{job=\"fak_gateway\"}",
          "refId": "A"
        }
      ]
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_PROMETHEUS}"
      },
      "title": "/v1/messages / sec",
      "description": "Claude Code dogfood request throughput. Filters `route=\"/v1/messages\"` (Claude Code traffic). Drive them by pointing a Claude Code session at `fak serve`; the `/v1/fak/syscall` smoke request does not appear here.",
      "type": "stat",
      "id": 58,
      "gridPos": {
        "h": 4,
        "w": 4,
        "x": 16,
        "y": 6
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          },
          "unit": "short"
        },
        "overrides": []
      },
      "options": {
        "colorMode": "value",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "textMode": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        }
      },
      "pluginVersion": "11.5.2",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_PROMETHEUS}"
          },
          "expr": "sum(rate(fak_gateway_http_requests_total{job=\"fak_gateway\",route=\"/v1/messages\"}[$__rate_interval]))",
          "refId": "A"
        }
      ]
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_PROMETHEUS}"
      },
      "title": "/v1/messages p95",
      "description": "p95 completed /v1/messages latency. Qwen3.6 local turns can be minutes. Filters `route=\"/v1/messages\"` (Claude Code traffic). Drive them by pointing a Claude Code session at `fak serve`; the `/v1/fak/syscall` smoke request does not appear here.",
      "type": "stat",
      "id": 59,
      "gridPos": {
        "h": 4,
        "w": 4,
        "x": 20,
        "y": 6
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "yellow",
                "value": 60
              },
              {
                "color": "red",
                "value": 180
              }
            ]
          },
          "unit": "s"
        },
        "overrides": []
      },
      "options": {
        "colorMode": "value",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "textMode": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        }
      },
      "pluginVersion": "11.5.2",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_PROMETHEUS}"
          },
          "expr": "histogram_quantile(0.95, sum by (le) (rate(fak_gateway_http_request_duration_seconds_bucket{job=\"fak_gateway\",route=\"/v1/messages\"}[$__rate_interval])))",
          "refId": "A"
        }
      ]
    },
    {
      "type": "row",
      "title": "Claude /v1/messages latency",
      "id": 60,
      "collapsed": false,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 10
      },
      "panels": []
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_PROMETHEUS}"
      },
      "title": "Latency quantiles",
      "description": "Completed /v1/messages latency. Buckets extend to 1800s for local 27B prefill. Filters `route=\"/v1/messages\"` (Claude Code traffic). Drive them by pointing a Claude Code session at `fak serve`; the `/v1/fak/syscall` smoke request does not appear here.",
      "type": "timeseries",
      "id": 61,
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 0,
        "y": 11
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "drawStyle": "line",
            "lineWidth": 1,
            "fillOpacity": 10,
            "showPoints": "never",
            "axisPlacement": "auto",
            "spanNulls": true,
            "pointSize": 5,
            "stacking": {
              "mode": "none"
            }
          },
          "unit": "s",
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          }
        },
        "overrides": []
      },
      "options": {
        "legend": {
          "displayMode": "list",
          "placement": "bottom",
          "calcs": []
        },
        "tooltip": {
          "mode": "multi",
          "sort": "desc"
        }
      },
      "pluginVersion": "11.5.2",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_PROMETHEUS}"
          },
          "expr": "histogram_quantile(0.50, sum by (le) (rate(fak_gateway_http_request_duration_seconds_bucket{job=\"fak_gateway\",route=\"/v1/messages\"}[$__rate_interval])))",
          "legendFormat": "p50",
          "refId": "A"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_PROMETHEUS}"
          },
          "expr": "sum(rate(fak_gateway_http_request_duration_seconds_sum{job=\"fak_gateway\",route=\"/v1/messages\"}[$__rate_interval])) / clamp_min(sum(rate(fak_gateway_http_request_duration_seconds_count{job=\"fak_gateway\",route=\"/v1/messages\"}[$__rate_interval])), 0.001)",
          "legendFormat": "avg",
          "refId": "B"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_PROMETHEUS}"
          },
          "expr": "histogram_quantile(0.95, sum by (le) (rate(fak_gateway_http_request_duration_seconds_bucket{job=\"fak_gateway\",route=\"/v1/messages\"}[$__rate_interval])))",
          "legendFormat": "p95",
          "refId": "C"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_PROMETHEUS}"
          },
          "expr": "histogram_quantile(0.99, sum by (le) (rate(fak_gateway_http_request_duration_seconds_bucket{job=\"fak_gateway\",route=\"/v1/messages\"}[$__rate_interval])))",
          "legendFormat": "p99",
          "refId": "D"
        }
      ]
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_PROMETHEUS}"
      },
      "title": "Request rate by status",
      "description": "Status mix for the Claude Code dogfood endpoint. Filters `route=\"/v1/messages\"` (Claude Code traffic). Drive them by pointing a Claude Code session at `fak serve`; the `/v1/fak/syscall` smoke request does not appear here.",
      "type": "timeseries",
      "id": 62,
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 12,
        "y": 11
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "drawStyle": "line",
            "lineWidth": 1,
            "fillOpacity": 10,
            "showPoints": "never",
            "axisPlacement": "auto",
            "spanNulls": true,
            "pointSize": 5,
            "stacking": {
              "mode": "none"
            }
          },
          "unit": "short",
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          }
        },
        "overrides": []
      },
      "options": {
        "legend": {
          "displayMode": "list",
          "placement": "bottom",
          "calcs": []
        },
        "tooltip": {
          "mode": "multi",
          "sort": "desc"
        }
      },
      "pluginVersion": "11.5.2",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_PROMETHEUS}"
          },
          "expr": "sum by (status) (rate(fak_gateway_http_requests_total{job=\"fak_gateway\",route=\"/v1/messages\",status=~\"2..|3..|4..|5..\"}[$__rate_interval]))",
          "legendFormat": "{{status}}",
          "refId": "A"
        }
      ]
    },
    {
      "type": "row",
      "title": "Slow request threshold rate",
      "id": 63,
      "collapsed": false,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 19
      },
      "panels": []
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_PROMETHEUS}"
      },
      "title": "Requests slower than threshold",
      "description": "Rate of completed /v1/messages requests slower than each bucket threshold. Filters `route=\"/v1/messages\"` (Claude Code traffic). Drive them by pointing a Claude Code session at `fak serve`; the `/v1/fak/syscall` smoke request does not appear here.",
      "type": "timeseries",
      "id": 64,
      "gridPos": {
        "h": 8,
        "w": 24,
        "x": 0,
        "y": 20
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "drawStyle": "line",
            "lineWidth": 1,
            "fillOpacity": 10,
            "showPoints": "never",
            "axisPlacement": "auto",
            "spanNulls": true,
            "pointSize": 5,
            "stacking": {
              "mode": "none"
            }
          },
          "unit": "short",
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          }
        },
        "overrides": []
      },
      "options": {
        "legend": {
          "displayMode": "list",
          "placement": "bottom",
          "calcs": []
        },
        "tooltip": {
          "mode": "multi",
          "sort": "desc"
        }
      },
      "pluginVersion": "11.5.2",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_PROMETHEUS}"
          },
          "expr": "(sum(rate(fak_gateway_http_request_duration_seconds_count{job=\"fak_gateway\",route=\"/v1/messages\"}[$__rate_interval])) or vector(0)) - (sum(rate(fak_gateway_http_request_duration_seconds_bucket{job=\"fak_gateway\",route=\"/v1/messages\",le=\"30\"}[$__rate_interval])) or vector(0))",
          "legendFormat": ">30s",
          "refId": "A"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_PROMETHEUS}"
          },
          "expr": "(sum(rate(fak_gateway_http_request_duration_seconds_count{job=\"fak_gateway\",route=\"/v1/messages\"}[$__rate_interval])) or vector(0)) - (sum(rate(fak_gateway_http_request_duration_seconds_bucket{job=\"fak_gateway\",route=\"/v1/messages\",le=\"60\"}[$__rate_interval])) or vector(0))",
          "legendFormat": ">60s",
          "refId": "B"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_PROMETHEUS}"
          },
          "expr": "(sum(rate(fak_gateway_http_request_duration_seconds_count{job=\"fak_gateway\",route=\"/v1/messages\"}[$__rate_interval])) or vector(0)) - (sum(rate(fak_gateway_http_request_duration_seconds_bucket{job=\"fak_gateway\",route=\"/v1/messages\",le=\"120\"}[$__rate_interval])) or vector(0))",
          "legendFormat": ">120s",
          "refId": "C"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_PROMETHEUS}"
          },
          "expr": "(sum(rate(fak_gateway_http_request_duration_seconds_count{job=\"fak_gateway\",route=\"/v1/messages\"}[$__rate_interval])) or vector(0)) - (sum(rate(fak_gateway_http_request_duration_seconds_bucket{job=\"fak_gateway\",route=\"/v1/messages\",le=\"300\"}[$__rate_interval])) or vector(0))",
          "legendFormat": ">300s",
          "refId": "D"
        }
      ]
    },
    {
      "type": "row",
      "title": "Kernel activity during dogfood turns",
      "id": 65,
      "collapsed": false,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 28
      },
      "panels": []
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_PROMETHEUS}"
      },
      "title": "Kernel operation verdict rate",
      "description": "Adjudication activity while Claude Code is using the gateway. This panel drops the /v1/messages filter, so it also reflects /v1/fak/syscall traffic.",
      "type": "timeseries",
      "id": 66,
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 0,
        "y": 29
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "drawStyle": "line",
            "lineWidth": 1,
            "fillOpacity": 10,
            "showPoints": "never",
            "axisPlacement": "auto",
            "spanNulls": true,
            "pointSize": 5,
            "stacking": {
              "mode": "none"
            }
          },
          "unit": "short",
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          }
        },
        "overrides": []
      },
      "options": {
        "legend": {
          "displayMode": "list",
          "placement": "bottom",
          "calcs": []
        },
        "tooltip": {
          "mode": "multi",
          "sort": "desc"
        }
      },
      "pluginVersion": "11.5.2",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_PROMETHEUS}"
          },
          "expr": "sum by (operation, verdict) (rate(fak_gateway_operations_total{job=\"fak_gateway\"}[$__rate_interval]))",
          "legendFormat": "{{operation}} {{verdict}}",
          "refId": "A"
        }
      ]
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_PROMETHEUS}"
      },
      "title": "Kernel counter rates",
      "description": "Kernel call-path counters during dogfood sessions. Route-agnostic, so any gateway traffic lights these up.",
      "type": "timeseries",
      "id": 67,
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 12,
        "y": 29
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "drawStyle": "line",
            "lineWidth": 1,
            "fillOpacity": 10,
            "showPoints": "never",
            "axisPlacement": "auto",
            "spanNulls": true,
            "pointSize": 5,
            "stacking": {
              "mode": "none"
            }
          },
          "unit": "short",
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          }
        },
        "overrides": []
      },
      "options": {
        "legend": {
          "displayMode": "list",
          "placement": "bottom",
          "calcs": []
        },
        "tooltip": {
          "mode": "multi",
          "sort": "desc"
        }
      },
      "pluginVersion": "11.5.2",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_PROMETHEUS}"
          },
          "expr": "rate(fak_kernel_submits_total{job=\"fak_gateway\"}[$__rate_interval])",
          "legendFormat": "submits",
          "refId": "A"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_PROMETHEUS}"
          },
          "expr": "rate(fak_kernel_vdso_hits_total{job=\"fak_gateway\"}[$__rate_interval])",
          "legendFormat": "vdso hits",
          "refId": "B"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_PROMETHEUS}"
          },
          "expr": "rate(fak_kernel_engine_calls_total{job=\"fak_gateway\"}[$__rate_interval])",
          "legendFormat": "engine calls",
          "refId": "C"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_PROMETHEUS}"
          },
          "expr": "rate(fak_kernel_denies_total{job=\"fak_gateway\"}[$__rate_interval])",
          "legendFormat": "denies",
          "refId": "D"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_PROMETHEUS}"
          },
          "expr": "rate(fak_kernel_quarantines_total{job=\"fak_gateway\"}[$__rate_interval])",
          "legendFormat": "quarantines",
          "refId": "E"
        }
      ]
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_PROMETHEUS}"
      },
      "title": "Request/debug log pointers",
      "description": "Operational pointers for the logs that contain raw Claude/gateway request detail.",
      "type": "text",
      "id": 68,
      "gridPos": {
        "h": 5,
        "w": 24,
        "x": 0,
        "y": 37
      },
      "fieldConfig": {
        "defaults": {},
        "overrides": []
      },
      "options": {
        "mode": "markdown",
        "content": "Grafana shows gateway metrics, not raw request bodies. For request-level debugging, the dogfood launcher defaults Claude Code to `--debug api`; probe stderr/debug goes to `/tmp/fak-claude.log`, and the gateway process log goes to `/tmp/fak-serve.log`. Set `FAK_DOGFOOD_CLAUDE_DEBUG_FILE=/path/to/file` if you want Claude's debug stream written to a dedicated file while the metrics in this dashboard show whether the request is still in flight, completed slowly, or failed by status."
      },
      "pluginVersion": "11.5.2"
    }
  ]
}
