What a healthy API dashboard can hide
2026-12-03 / 4 min / automation / observability / reliability
When an API stays green while customers wait, follow one request through the queue and measure how long it takes to finish the work.
At 9 a.m. someone requests a sales export. The API accepts it in 80 milliseconds. The dashboard stays green. At 10 a.m. the file is still missing.
Both measurements can be right. The dashboard timed how long it took the API to accept the request. The customer timed how long it took to get a file. In a system that does work in the background, those clocks stop at different points.
Follow one export
Start with the ID from the customer’s request. Look for the same ID, or a linked job ID, from submission through queueing, the worker’s first attempt and the point where the finished file became available. Check the customer view too. The file can exist while the page still shows “Processing”.
Suppose the job enters the queue at 9 a.m., starts at 9:58 and finishes at 10. You have 58 minutes of waiting and two minutes of work. That changes where you look. Check the workers and other jobs ahead of this one before you spend an afternoon tuning the export query.
Now change one fact. The worker starts at 9:01 and spends 59 minutes on the export. Queue depth might look ordinary. This time the question is where the worker spent that hour. Compare time spent querying, building the file and uploading it. Look for repeated attempts as well.
Read the queue in the context of the job
A count of waiting jobs tells you how much work is queued. The age of the oldest eligible job tells you how long work has waited for a worker. Read them together with the rate of new and completed jobs.
For example, 500 waiting jobs can be fine during a short burst if the workers are catching up. Six jobs can be a serious problem if the oldest has waited an hour on a queue that normally clears in minutes. Compare the age with the time customers expect to wait.
Keep scheduled jobs out of the wait calculation until they are due. Track failed jobs and delayed retries separately. If several workflows share a queue, break the measurements down by job type so a stream of quick exports cannot hide a slowdown in another workflow.
Put completion on the dashboard
For an export, measure from the time you accept the request to the time the file can be downloaded. Decide what counts as on time with the people who use the report. Then track how many requests finish within that time and how many are overdue or fail.
A latency chart built only from finished jobs can look healthy while some jobs never finish. Give open requests their own overdue count and an alert when it rises. Keep HTTP latency on the dashboard so you can see which part of the system changed.
The same check applies to document generation, imports and other business automations. Pick a request that took too long and write down the timestamps you can find. Where the record goes quiet is where the next measurement belongs.
Read next
- Test how payments fail before you launch
Use four rehearsal scenarios to see whether your payment integration can recover from delayed events, duplicate callbacks and failed updates.
- eTIMS integration: OSCU or VSCU, and what changes in your system
KRA eTIMS system-to-system integration explained: OSCU vs VSCU, sandbox testing and certification, and what your invoicing system has to change.
