{
  "id": null,
  "uid": "zerocopy-metrics",
  "title": "ZeroCopy metrics",
  "description": "One-minute transaction gauges and Shredstream receiver throughput. Missing series remain empty. Key and customer filters apply to SWQoS panels.",
  "tags": ["zerocopy"],
  "timezone": "utc",
  "schemaVersion": 39,
  "version": 1,
  "editable": true,
  "fiscalYearStartMonth": 0,
  "graphTooltip": 1,
  "refresh": "1m",
  "time": {
    "from": "now-63m",
    "to": "now-3m"
  },
  "timepicker": {
    "refresh_intervals": ["1m", "5m", "15m", "1h"]
  },
  "annotations": {
    "list": []
  },
  "links": [
    {
      "title": "Metrics API documentation",
      "url": "https://zerocopy.sh/docs/account/metrics-api",
      "type": "link",
      "targetBlank": true
    }
  ],
  "templating": {
    "list": [
      {
        "name": "datasource",
        "label": "Prometheus",
        "type": "datasource",
        "query": "prometheus",
        "refresh": 1,
        "options": [],
        "current": {},
        "hide": 0
      },
      {
        "name": "customer",
        "label": "Customer",
        "type": "query",
        "datasource": {
          "type": "prometheus",
          "uid": "${datasource}"
        },
        "definition": "label_values(zerocopy_key_info, customer)",
        "query": {
          "query": "label_values(zerocopy_key_info, customer)",
          "refId": "CustomerVariable"
        },
        "refresh": 1,
        "sort": 1,
        "multi": true,
        "includeAll": true,
        "allValue": ".*",
        "current": {
          "text": "All",
          "value": "$__all"
        },
        "options": [],
        "hide": 0
      },
      {
        "name": "key",
        "label": "Key",
        "type": "query",
        "datasource": {
          "type": "prometheus",
          "uid": "${datasource}"
        },
        "definition": "label_values(zerocopy_key_info{customer=~\"$customer\"}, key_id)",
        "query": {
          "query": "label_values(zerocopy_key_info{customer=~\"$customer\"}, key_id)",
          "refId": "KeyVariable"
        },
        "refresh": 1,
        "sort": 1,
        "multi": true,
        "includeAll": true,
        "allValue": ".*",
        "current": {
          "text": "All",
          "value": "$__all"
        },
        "options": [],
        "hide": 0
      }
    ]
  },
  "panels": [
    {
      "id": 1,
      "type": "timeseries",
      "title": "Transactions by outcome",
      "description": "Transactions resolved in each complete UTC minute. All outcomes are included. These are minute gauges, not counters.",
      "datasource": {
        "type": "prometheus",
        "uid": "${datasource}"
      },
      "gridPos": {
        "h": 9,
        "w": 12,
        "x": 0,
        "y": 0
      },
      "fieldConfig": {
        "defaults": {
          "unit": "short",
          "min": 0,
          "noValue": "No data",
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "drawStyle": "line",
            "lineInterpolation": "stepAfter",
            "lineWidth": 1,
            "fillOpacity": 8,
            "showPoints": "auto",
            "spanNulls": false,
            "axisCenteredZero": false,
            "stacking": {
              "mode": "none",
              "group": "A"
            },
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            }
          }
        },
        "overrides": []
      },
      "options": {
        "tooltip": {
          "mode": "multi",
          "sort": "desc"
        },
        "legend": {
          "showLegend": true,
          "displayMode": "list",
          "placement": "bottom"
        }
      },
      "targets": [
        {
          "refId": "A",
          "datasource": {
            "type": "prometheus",
            "uid": "${datasource}"
          },
          "editorMode": "code",
          "expr": "sum by (outcome) (zerocopy_swqos_transactions{key_id=~\"$key\"} * on (key_id) group_left (name, customer) (topk by (key_id) (1, timestamp(zerocopy_key_info{key_id=~\"$key\",customer=~\"$customer\"})) > bool 0))",
          "legendFormat": "{{outcome}}",
          "range": true,
          "instant": false,
          "interval": "1m"
        }
      ],
      "interval": "1m",
      "maxDataPoints": 1440
    },
    {
      "id": 2,
      "type": "timeseries",
      "title": "Success rate",
      "description": "Landed transactions divided by all selected transactions, including failed and expired. A minute with transactions but no landed series is 0%; a minute without transactions has no rate.",
      "datasource": {
        "type": "prometheus",
        "uid": "${datasource}"
      },
      "gridPos": {
        "h": 9,
        "w": 12,
        "x": 12,
        "y": 0
      },
      "fieldConfig": {
        "defaults": {
          "unit": "percent",
          "min": 0,
          "noValue": "No data",
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "drawStyle": "line",
            "lineInterpolation": "stepAfter",
            "lineWidth": 1,
            "fillOpacity": 8,
            "showPoints": "auto",
            "spanNulls": false,
            "axisCenteredZero": false,
            "stacking": {
              "mode": "none",
              "group": "A"
            },
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            }
          }
        },
        "overrides": []
      },
      "options": {
        "tooltip": {
          "mode": "multi",
          "sort": "desc"
        },
        "legend": {
          "showLegend": true,
          "displayMode": "list",
          "placement": "bottom"
        }
      },
      "targets": [
        {
          "refId": "A",
          "datasource": {
            "type": "prometheus",
            "uid": "${datasource}"
          },
          "editorMode": "code",
          "expr": "100 * ((sum(zerocopy_swqos_transactions{key_id=~\"$key\",outcome=\"landed\"} * on (key_id) group_left (name, customer) (topk by (key_id) (1, timestamp(zerocopy_key_info{key_id=~\"$key\",customer=~\"$customer\"})) > bool 0)) or (0 * sum(zerocopy_swqos_transactions{key_id=~\"$key\"} * on (key_id) group_left (name, customer) (topk by (key_id) (1, timestamp(zerocopy_key_info{key_id=~\"$key\",customer=~\"$customer\"})) > bool 0)))) / sum(zerocopy_swqos_transactions{key_id=~\"$key\"} * on (key_id) group_left (name, customer) (topk by (key_id) (1, timestamp(zerocopy_key_info{key_id=~\"$key\",customer=~\"$customer\"})) > bool 0)))",
          "legendFormat": "Successful",
          "range": true,
          "instant": false,
          "interval": "1m"
        }
      ],
      "interval": "1m",
      "maxDataPoints": 1440
    },
    {
      "id": 3,
      "type": "timeseries",
      "title": "Slots to land p50 / p90 / p99",
      "description": "Landed transactions only. Each key and metro has its own quantiles; quantiles are not averaged across keys.",
      "datasource": {
        "type": "prometheus",
        "uid": "${datasource}"
      },
      "gridPos": {
        "h": 9,
        "w": 12,
        "x": 0,
        "y": 9
      },
      "fieldConfig": {
        "defaults": {
          "unit": "suffix: slots",
          "min": 0,
          "noValue": "No data",
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "drawStyle": "line",
            "lineInterpolation": "stepAfter",
            "lineWidth": 1,
            "fillOpacity": 8,
            "showPoints": "auto",
            "spanNulls": false,
            "axisCenteredZero": false,
            "stacking": {
              "mode": "none",
              "group": "A"
            },
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            }
          }
        },
        "overrides": []
      },
      "options": {
        "tooltip": {
          "mode": "multi",
          "sort": "desc"
        },
        "legend": {
          "showLegend": true,
          "displayMode": "list",
          "placement": "bottom"
        }
      },
      "targets": [
        {
          "refId": "A",
          "datasource": {
            "type": "prometheus",
            "uid": "${datasource}"
          },
          "editorMode": "code",
          "expr": "zerocopy_swqos_slots_to_land{key_id=~\"$key\"} * on (key_id) group_left (name, customer) (topk by (key_id) (1, timestamp(zerocopy_key_info{key_id=~\"$key\",customer=~\"$customer\"})) > bool 0)",
          "legendFormat": "{{name}} · {{metro}} · q{{quantile}}",
          "range": true,
          "instant": false,
          "interval": "1m"
        }
      ],
      "interval": "1m",
      "maxDataPoints": 1440
    },
    {
      "id": 4,
      "type": "timeseries",
      "title": "Edge time p50 / p90 / p99",
      "description": "Receipt-to-forwarding time in seconds. Each key and metro has its own quantiles.",
      "datasource": {
        "type": "prometheus",
        "uid": "${datasource}"
      },
      "gridPos": {
        "h": 9,
        "w": 12,
        "x": 12,
        "y": 9
      },
      "fieldConfig": {
        "defaults": {
          "unit": "s",
          "min": 0,
          "noValue": "No data",
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "drawStyle": "line",
            "lineInterpolation": "stepAfter",
            "lineWidth": 1,
            "fillOpacity": 8,
            "showPoints": "auto",
            "spanNulls": false,
            "axisCenteredZero": false,
            "stacking": {
              "mode": "none",
              "group": "A"
            },
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            }
          }
        },
        "overrides": []
      },
      "options": {
        "tooltip": {
          "mode": "multi",
          "sort": "desc"
        },
        "legend": {
          "showLegend": true,
          "displayMode": "list",
          "placement": "bottom"
        }
      },
      "targets": [
        {
          "refId": "A",
          "datasource": {
            "type": "prometheus",
            "uid": "${datasource}"
          },
          "editorMode": "code",
          "expr": "zerocopy_swqos_edge_time_seconds{key_id=~\"$key\"} * on (key_id) group_left (name, customer) (topk by (key_id) (1, timestamp(zerocopy_key_info{key_id=~\"$key\",customer=~\"$customer\"})) > bool 0)",
          "legendFormat": "{{name}} · {{metro}} · q{{quantile}}",
          "range": true,
          "instant": false,
          "interval": "1m"
        }
      ],
      "interval": "1m",
      "maxDataPoints": 1440
    },
    {
      "id": 5,
      "type": "timeseries",
      "title": "Tips",
      "description": "Tips in SOL for landed transactions in each complete UTC minute. This is traffic data, not a billing ledger.",
      "datasource": {
        "type": "prometheus",
        "uid": "${datasource}"
      },
      "gridPos": {
        "h": 9,
        "w": 12,
        "x": 0,
        "y": 18
      },
      "fieldConfig": {
        "defaults": {
          "unit": "suffix: SOL",
          "min": 0,
          "noValue": "No data",
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "drawStyle": "line",
            "lineInterpolation": "stepAfter",
            "lineWidth": 1,
            "fillOpacity": 8,
            "showPoints": "auto",
            "spanNulls": false,
            "axisCenteredZero": false,
            "stacking": {
              "mode": "none",
              "group": "A"
            },
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            }
          }
        },
        "overrides": []
      },
      "options": {
        "tooltip": {
          "mode": "multi",
          "sort": "desc"
        },
        "legend": {
          "showLegend": true,
          "displayMode": "list",
          "placement": "bottom"
        }
      },
      "targets": [
        {
          "refId": "A",
          "datasource": {
            "type": "prometheus",
            "uid": "${datasource}"
          },
          "editorMode": "code",
          "expr": "sum by (name, customer) (zerocopy_swqos_tips_sol{key_id=~\"$key\"} * on (key_id) group_left (name, customer) (topk by (key_id) (1, timestamp(zerocopy_key_info{key_id=~\"$key\",customer=~\"$customer\"})) > bool 0))",
          "legendFormat": "{{name}} · {{customer}}",
          "range": true,
          "instant": false,
          "interval": "1m"
        }
      ],
      "interval": "1m",
      "maxDataPoints": 1440
    },
    {
      "id": 6,
      "type": "timeseries",
      "title": "Priority fees",
      "description": "Priority fees in SOL for landed and failed transactions in each complete UTC minute.",
      "datasource": {
        "type": "prometheus",
        "uid": "${datasource}"
      },
      "gridPos": {
        "h": 9,
        "w": 12,
        "x": 12,
        "y": 18
      },
      "fieldConfig": {
        "defaults": {
          "unit": "suffix: SOL",
          "min": 0,
          "noValue": "No data",
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "drawStyle": "line",
            "lineInterpolation": "stepAfter",
            "lineWidth": 1,
            "fillOpacity": 8,
            "showPoints": "auto",
            "spanNulls": false,
            "axisCenteredZero": false,
            "stacking": {
              "mode": "none",
              "group": "A"
            },
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            }
          }
        },
        "overrides": []
      },
      "options": {
        "tooltip": {
          "mode": "multi",
          "sort": "desc"
        },
        "legend": {
          "showLegend": true,
          "displayMode": "list",
          "placement": "bottom"
        }
      },
      "targets": [
        {
          "refId": "A",
          "datasource": {
            "type": "prometheus",
            "uid": "${datasource}"
          },
          "editorMode": "code",
          "expr": "sum by (name, customer) (zerocopy_swqos_priority_fees_sol{key_id=~\"$key\"} * on (key_id) group_left (name, customer) (topk by (key_id) (1, timestamp(zerocopy_key_info{key_id=~\"$key\",customer=~\"$customer\"})) > bool 0))",
          "legendFormat": "{{name}} · {{customer}}",
          "range": true,
          "instant": false,
          "interval": "1m"
        }
      ],
      "interval": "1m",
      "maxDataPoints": 1440
    },
    {
      "id": 7,
      "type": "timeseries",
      "title": "Failed transactions by error",
      "description": "The team’s top 20 normalized errors in the minute; the rest are grouped as other. The selected keys can contain a subset of those errors.",
      "datasource": {
        "type": "prometheus",
        "uid": "${datasource}"
      },
      "gridPos": {
        "h": 9,
        "w": 12,
        "x": 0,
        "y": 27
      },
      "fieldConfig": {
        "defaults": {
          "unit": "short",
          "min": 0,
          "noValue": "No data",
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "drawStyle": "line",
            "lineInterpolation": "stepAfter",
            "lineWidth": 1,
            "fillOpacity": 8,
            "showPoints": "auto",
            "spanNulls": false,
            "axisCenteredZero": false,
            "stacking": {
              "mode": "none",
              "group": "A"
            },
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            }
          }
        },
        "overrides": []
      },
      "options": {
        "tooltip": {
          "mode": "multi",
          "sort": "desc"
        },
        "legend": {
          "showLegend": true,
          "displayMode": "list",
          "placement": "bottom"
        }
      },
      "targets": [
        {
          "refId": "A",
          "datasource": {
            "type": "prometheus",
            "uid": "${datasource}"
          },
          "editorMode": "code",
          "expr": "sum by (error) (zerocopy_swqos_failed_transactions{key_id=~\"$key\"} * on (key_id) group_left (name, customer) (topk by (key_id) (1, timestamp(zerocopy_key_info{key_id=~\"$key\",customer=~\"$customer\"})) > bool 0))",
          "legendFormat": "{{error}}",
          "range": true,
          "instant": false,
          "interval": "1m"
        }
      ],
      "interval": "1m",
      "maxDataPoints": 1440
    },
    {
      "id": 8,
      "type": "timeseries",
      "title": "Compute unit price p50 / p90 / p99",
      "description": "Compute unit price in microlamports per compute unit. Quantiles are shown per key.",
      "datasource": {
        "type": "prometheus",
        "uid": "${datasource}"
      },
      "gridPos": {
        "h": 9,
        "w": 12,
        "x": 12,
        "y": 27
      },
      "fieldConfig": {
        "defaults": {
          "unit": "suffix: microlamports/CU",
          "min": 0,
          "noValue": "No data",
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "drawStyle": "line",
            "lineInterpolation": "stepAfter",
            "lineWidth": 1,
            "fillOpacity": 8,
            "showPoints": "auto",
            "spanNulls": false,
            "axisCenteredZero": false,
            "stacking": {
              "mode": "none",
              "group": "A"
            },
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            }
          }
        },
        "overrides": []
      },
      "options": {
        "tooltip": {
          "mode": "multi",
          "sort": "desc"
        },
        "legend": {
          "showLegend": true,
          "displayMode": "list",
          "placement": "bottom"
        }
      },
      "targets": [
        {
          "refId": "A",
          "datasource": {
            "type": "prometheus",
            "uid": "${datasource}"
          },
          "editorMode": "code",
          "expr": "zerocopy_swqos_compute_unit_price_microlamports{key_id=~\"$key\"} * on (key_id) group_left (name, customer) (topk by (key_id) (1, timestamp(zerocopy_key_info{key_id=~\"$key\",customer=~\"$customer\"})) > bool 0)",
          "legendFormat": "{{name}} · q{{quantile}}",
          "range": true,
          "instant": false,
          "interval": "1m"
        }
      ],
      "interval": "1m",
      "maxDataPoints": 1440
    },
    {
      "id": 9,
      "type": "timeseries",
      "title": "Landed index p50 / p90 / p99",
      "description": "Position in the block for landed transactions. Quantiles are shown per key.",
      "datasource": {
        "type": "prometheus",
        "uid": "${datasource}"
      },
      "gridPos": {
        "h": 9,
        "w": 12,
        "x": 0,
        "y": 36
      },
      "fieldConfig": {
        "defaults": {
          "unit": "short",
          "min": 0,
          "noValue": "No data",
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "drawStyle": "line",
            "lineInterpolation": "stepAfter",
            "lineWidth": 1,
            "fillOpacity": 8,
            "showPoints": "auto",
            "spanNulls": false,
            "axisCenteredZero": false,
            "stacking": {
              "mode": "none",
              "group": "A"
            },
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            }
          }
        },
        "overrides": []
      },
      "options": {
        "tooltip": {
          "mode": "multi",
          "sort": "desc"
        },
        "legend": {
          "showLegend": true,
          "displayMode": "list",
          "placement": "bottom"
        }
      },
      "targets": [
        {
          "refId": "A",
          "datasource": {
            "type": "prometheus",
            "uid": "${datasource}"
          },
          "editorMode": "code",
          "expr": "zerocopy_swqos_landed_index{key_id=~\"$key\"} * on (key_id) group_left (name, customer) (topk by (key_id) (1, timestamp(zerocopy_key_info{key_id=~\"$key\",customer=~\"$customer\"})) > bool 0)",
          "legendFormat": "{{name}} · q{{quantile}}",
          "range": true,
          "instant": false,
          "interval": "1m"
        }
      ],
      "interval": "1m",
      "maxDataPoints": 1440
    },
    {
      "id": 10,
      "type": "timeseries",
      "title": "Block engine submissions",
      "description": "Block engine submissions by result in each complete UTC minute. The result does not attribute transaction landing to an engine.",
      "datasource": {
        "type": "prometheus",
        "uid": "${datasource}"
      },
      "gridPos": {
        "h": 9,
        "w": 12,
        "x": 12,
        "y": 36
      },
      "fieldConfig": {
        "defaults": {
          "unit": "short",
          "min": 0,
          "noValue": "No data",
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "drawStyle": "line",
            "lineInterpolation": "stepAfter",
            "lineWidth": 1,
            "fillOpacity": 8,
            "showPoints": "auto",
            "spanNulls": false,
            "axisCenteredZero": false,
            "stacking": {
              "mode": "none",
              "group": "A"
            },
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            }
          }
        },
        "overrides": []
      },
      "options": {
        "tooltip": {
          "mode": "multi",
          "sort": "desc"
        },
        "legend": {
          "showLegend": true,
          "displayMode": "list",
          "placement": "bottom"
        }
      },
      "targets": [
        {
          "refId": "A",
          "datasource": {
            "type": "prometheus",
            "uid": "${datasource}"
          },
          "editorMode": "code",
          "expr": "sum by (engine, result) (zerocopy_swqos_block_engine_submissions{key_id=~\"$key\"} * on (key_id) group_left (name, customer) (topk by (key_id) (1, timestamp(zerocopy_key_info{key_id=~\"$key\",customer=~\"$customer\"})) > bool 0))",
          "legendFormat": "{{engine}} · {{result}}",
          "range": true,
          "instant": false,
          "interval": "1m"
        }
      ],
      "interval": "1m",
      "maxDataPoints": 1440
    },
    {
      "id": 11,
      "type": "timeseries",
      "title": "Shredstream packets",
      "description": "Packets delivered per second for the team’s receivers. Customer and key selectors do not apply.",
      "datasource": {
        "type": "prometheus",
        "uid": "${datasource}"
      },
      "gridPos": {
        "h": 9,
        "w": 12,
        "x": 0,
        "y": 45
      },
      "fieldConfig": {
        "defaults": {
          "unit": "pps",
          "min": 0,
          "noValue": "No data",
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "drawStyle": "line",
            "lineInterpolation": "stepAfter",
            "lineWidth": 1,
            "fillOpacity": 8,
            "showPoints": "auto",
            "spanNulls": false,
            "axisCenteredZero": false,
            "stacking": {
              "mode": "none",
              "group": "A"
            },
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            }
          }
        },
        "overrides": []
      },
      "options": {
        "tooltip": {
          "mode": "multi",
          "sort": "desc"
        },
        "legend": {
          "showLegend": true,
          "displayMode": "list",
          "placement": "bottom"
        }
      },
      "targets": [
        {
          "refId": "A",
          "datasource": {
            "type": "prometheus",
            "uid": "${datasource}"
          },
          "editorMode": "code",
          "expr": "zerocopy_shredstream_packets_per_second",
          "legendFormat": "{{receiver}} · {{metro}}",
          "range": true,
          "instant": false,
          "interval": "1m"
        }
      ],
      "interval": "1m",
      "maxDataPoints": 1440
    },
    {
      "id": 12,
      "type": "timeseries",
      "title": "Shredstream throughput",
      "description": "Bytes delivered per second for the team’s receivers. Customer and key selectors do not apply.",
      "datasource": {
        "type": "prometheus",
        "uid": "${datasource}"
      },
      "gridPos": {
        "h": 9,
        "w": 12,
        "x": 12,
        "y": 45
      },
      "fieldConfig": {
        "defaults": {
          "unit": "Bps",
          "min": 0,
          "noValue": "No data",
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "drawStyle": "line",
            "lineInterpolation": "stepAfter",
            "lineWidth": 1,
            "fillOpacity": 8,
            "showPoints": "auto",
            "spanNulls": false,
            "axisCenteredZero": false,
            "stacking": {
              "mode": "none",
              "group": "A"
            },
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            }
          }
        },
        "overrides": []
      },
      "options": {
        "tooltip": {
          "mode": "multi",
          "sort": "desc"
        },
        "legend": {
          "showLegend": true,
          "displayMode": "list",
          "placement": "bottom"
        }
      },
      "targets": [
        {
          "refId": "A",
          "datasource": {
            "type": "prometheus",
            "uid": "${datasource}"
          },
          "editorMode": "code",
          "expr": "zerocopy_shredstream_bytes_per_second",
          "legendFormat": "{{receiver}} · {{metro}}",
          "range": true,
          "instant": false,
          "interval": "1m"
        }
      ],
      "interval": "1m",
      "maxDataPoints": 1440
    },
    {
      "id": 13,
      "type": "timeseries",
      "title": "Shredstream delivery errors",
      "description": "Delivery errors per second for the team’s receivers. Customer and key selectors do not apply.",
      "datasource": {
        "type": "prometheus",
        "uid": "${datasource}"
      },
      "gridPos": {
        "h": 9,
        "w": 12,
        "x": 0,
        "y": 54
      },
      "fieldConfig": {
        "defaults": {
          "unit": "ops",
          "min": 0,
          "noValue": "No data",
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "drawStyle": "line",
            "lineInterpolation": "stepAfter",
            "lineWidth": 1,
            "fillOpacity": 8,
            "showPoints": "auto",
            "spanNulls": false,
            "axisCenteredZero": false,
            "stacking": {
              "mode": "none",
              "group": "A"
            },
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            }
          }
        },
        "overrides": []
      },
      "options": {
        "tooltip": {
          "mode": "multi",
          "sort": "desc"
        },
        "legend": {
          "showLegend": true,
          "displayMode": "list",
          "placement": "bottom"
        }
      },
      "targets": [
        {
          "refId": "A",
          "datasource": {
            "type": "prometheus",
            "uid": "${datasource}"
          },
          "editorMode": "code",
          "expr": "zerocopy_shredstream_errors_per_second",
          "legendFormat": "{{receiver}} · {{metro}}",
          "range": true,
          "instant": false,
          "interval": "1m"
        }
      ],
      "interval": "1m",
      "maxDataPoints": 1440
    },
    {
      "id": 14,
      "type": "timeseries",
      "title": "Compute unit limit p50 / p90 / p99",
      "description": "Requested compute unit limits. Quantiles are shown per key.",
      "datasource": {
        "type": "prometheus",
        "uid": "${datasource}"
      },
      "gridPos": {
        "h": 9,
        "w": 12,
        "x": 12,
        "y": 54
      },
      "fieldConfig": {
        "defaults": {
          "unit": "suffix: CU",
          "min": 0,
          "noValue": "No data",
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "drawStyle": "line",
            "lineInterpolation": "stepAfter",
            "lineWidth": 1,
            "fillOpacity": 8,
            "showPoints": "auto",
            "spanNulls": false,
            "axisCenteredZero": false,
            "stacking": {
              "mode": "none",
              "group": "A"
            },
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            }
          }
        },
        "overrides": []
      },
      "options": {
        "tooltip": {
          "mode": "multi",
          "sort": "desc"
        },
        "legend": {
          "showLegend": true,
          "displayMode": "list",
          "placement": "bottom"
        }
      },
      "targets": [
        {
          "refId": "A",
          "datasource": {
            "type": "prometheus",
            "uid": "${datasource}"
          },
          "editorMode": "code",
          "expr": "zerocopy_swqos_compute_unit_limit{key_id=~\"$key\"} * on (key_id) group_left (name, customer) (topk by (key_id) (1, timestamp(zerocopy_key_info{key_id=~\"$key\",customer=~\"$customer\"})) > bool 0)",
          "legendFormat": "{{name}} · q{{quantile}}",
          "range": true,
          "instant": false,
          "interval": "1m"
        }
      ],
      "interval": "1m",
      "maxDataPoints": 1440
    }
  ]
}
