Skip to content
Clairos Learn

Observability and tracing · Lesson 2 of 15 · 5 min

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.

Mastery 0/3Run itExplain itApply it
learner@clairosSimulated AI Ops lab
learner@clairos:~ $
↑ history · Tab complete · Ctrl+C cancel · Esc, Tab to leaveExit 0

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.

Try a variation

Name the assumption that would have to change for “interpret-as-counter” to stop being the justified action. Do not silently replace missing evidence with a guess.

Explain it

What does the evidence in “Inspect gateway metrics” justify?

Apply it elsewhere

A colleague concludes: “Report 2400 requests per second from the counter value alone.” What should you do?

Keep the momentum.

Complete the lab, then explain and apply the pattern.

Next: Read latency percentilesTry an incident drill

Anonymous 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

  1. 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
  2. 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
  3. 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