Twenty Pods, Twenty Services? Setting the Unit for an Operations View
An operations view that lists twenty pods during a canary cannot answer the support team. An operations home built on one service-and-environment row that expands into per-version requests and 5xx errors, using a 29-in-10,000 example and OpenTelemetry identifiers.
A new version of the booking API has gone out to a portion of requests first. The production cluster runs 16 pods on the old version and 4 on the new one. Customer support asks: "How many users can't book right now?" If the service list shows twenty rows of pod names, the on-call engineer has to figure out which rows to add together before they can even start on that question.
The basic unit of an operations view is the service and its environment, not the pod. Pods are the runtime targets you expand when investigating that service's errors.
What should the first row of an operations home show?
Show one row, Booking API / Production, first, and let it expand into per-version results. The numbers below are HTTP requests and 5xx responses counted at the service entry point over the same five minutes. (The numbers are illustrative.)
| Version | Pods | Requests | 5xx | Error rate |
|---|---|---|---|---|
| Old version | 16 | 9,000 | 9 | 0.10% |
| New version | 4 | 1,000 | 20 | 2.00% |
| Booking API total | 20 | 10,000 | 29 | 0.29% |
The overall error rate is 29 ÷ 10,000. The new version holds 20% of the pods but actually received 10% of the requests, and 20 of the 29 server errors came from it. Support can be told: "In the last five minutes, 29 of 10,000 booking API requests returned a server error." One user may have retried several times, so counting affected people needs a separate aggregation.
For the same errors, where do the service owner and the infrastructure owner look first?
The service owner's next step is to pause widening traffic to the new version and open a failed request. In that request's trace, they find the span where the error was recorded and look at the pipeline run and change request that shipped that version. The infrastructure owner expands the workloads for the same time window and checks whether restarts or out-of-memory kills cluster on particular pods. Both are looking at the same errors, but the first detail screen they need is different.
How do you record services and pods separately?
Supporting both the service view and pod-level investigation means keeping the service identifier and the pod identifier separately. OpenTelemetry defines service.name for the logical service name and k8s.pod.uid for a Kubernetes pod's UID (Kubernetes resource semantic conventions). A replaced pod gets a new UID. The operations view should link collected signals to which service and environment of which project they belong to, and use the pod UID when investigating an individual runtime target.
The first row of the operations home could read Booking API · Production · errors 29/10,000. Click the number and you see which version the errors concentrate in; click a single error and you see which request and pod to examine. On the day the pod count goes from twenty to thirty, support still checks the booking service's status in the same place.
How to use error rates split by version in a deploy decision continues in Errors spiked right after a deploy. What evidence should an AI SRE look at first?
- #product
- #observability
- #kubernetes
- #canary
- #sre