Inspect gateway metrics
Metrics need units, scope and a time window. Counters, rates and gauges should not be compared as though they measured the same thing.
Understand the pattern
Metrics need units, scope and a time window. Counters, rates and gauges should not be compared as though they measured the same thing.
Interpret the evidence
Treat 2400 as a counter observation, not an instantaneous requests-per-second value.
A tempting mistake
Report 2400 requests per second from the counter value alone.
All names, measurements, prices, versions, and thresholds in this exercise are fictional training data. The evidence supports this bounded scenario, not a claim about a live provider.
Worked example and expected result
$ cat /opt/ai-lab/cases/aiops-observability-tracing-002.json{
"fixture": "Fictional training data; not a live measurement.",
"name": "gateway_requests_total",
"type": "counter",
"value": 2400,
"window_seconds": 300
}Exit status: 0. The command completed successfully in the training fixture.
$ jq .type /opt/ai-lab/cases/aiops-observability-tracing-002.json"counter"
Exit status: 0. The command completed successfully in the training fixture.
$ printf '%s\n' 'interpret-as-counter' > /home/learner/lab/aiops-observability-tracing-002-decision.txt(no output; exit 0)
Exit status: 0. The command completed successfully in the training fixture.
Explain it
Apply it elsewhere
Keep the momentum.
Complete the lab, then explain and apply the pattern.
Next: Read latency percentilesTry an incident drillAnonymous lesson and mastery progress lasts for this session. Sign in to keep synced lesson XP between sessions; mastery stays device-local. No speed bonus, lost lives, or hint penalties.
Keep learning
- 01Read an observability mapLogs, metrics and traces answer different questions. Combine a metric trend with a trace and targeted logs instead of treating any single view as the complete explanation.Practice
- 02Read latency percentilesA p95 latency describes a percentile within an observed window. It does not mean that every request or the average request has that latency.Practice
- 03Compare throughput signalsRequests per second and tokens per second measure different throughput. Workload length can change token throughput without the same change in request throughput.Practice