Partition Consumer Lag
Compute remaining records and distinguish lost retention history, stale producer offsets, and absent checkpoints per partition.
Custom requests cost 0.04 USDC on Base.
Download example JSON · OpenAPI · Source and usage
Pay with a browser wallet · Open example in checkout
POST a JSON request to /partition-consumer-lag/v1/check with an x402 V2 client.
Worked example
Request
{
"partitions": [
{
"id": "late",
"first_available": 10,
"next_published": 25,
"next_consume": 7
},
{
"id": "current",
"first_available": 20,
"next_published": 25,
"next_consume": 23
},
{
"id": "unknown",
"first_available": 0,
"next_published": 45,
"next_consume": null
}
]
}Result
{
"known_pending_records": "17",
"expired_records": "3",
"partitions": [
{
"id": "late",
"status": "retention_gap",
"pending": "15",
"expired": "3"
},
{
"id": "current",
"status": "within_retention",
"pending": "2",
"expired": "0"
},
{
"id": "unknown",
"status": "no_checkpoint",
"pending": null,
"expired": null
}
]
}Support catalog maintenance through GitHub Sponsors. Sponsor gptenv · Sponsor Jeremy Carter