Operate and shipLesson 1 of 10
  1. Metrics, logs, events and traces, not reconciled
    1. Four signals
    2. Resource metrics
    3. Object state metrics
    4. The Prometheus model
    5. Logs
    6. Events
    7. Traces with OpenTelemetry
    8. Alerts that page
  2. Horizontal pod autoscaling, not reconciled
  3. Right-sizing and in-place resize, not reconciled
  4. A troubleshooting method, not reconciled
  5. kubectl debug and ephemeral containers, not reconciled
  6. Debugging from the node: crictl, journalctl and nsenter, not reconciled
  7. Upgrades and version skew, not reconciled
  8. etcd, backup and disaster recovery, not reconciled
  9. GitOps with Argo CD, not reconciled
  10. Progressive delivery, not reconciled

Metrics, logs, events and traces

Four signals tell you what a cluster and its workloads are doing. Learn where each one comes from, how long Kubernetes keeps it, and which tool answers which question, from kubectl top to Prometheus and OpenTelemetry.

  • 25 min
  • 4 objectives
  • 8 scenes
  • Includes an On AWS layer

Shows the lesson one block at a time. Arrow keys step, number keys jump to a scene, and Escape returns to the page where you were.

Reconcile, in 8 scenes

Four signals

Each signal answers a different question, and none of them substitutes for another.

  • Metrics are numbers sampled over time: CPU per pod, requests per second, replicas available. They answer “how much, and is it changing?” and they are cheap to keep for months.
  • Logs are the lines a process writes. They answer “what did this process say it was doing?” and their volume grows with traffic, which makes them costly to keep.
  • Events are short records the control plane writes about objects: a pod was scheduled, an image failed to pull, a container was killed. They answer “what did Kubernetes do to this object, and why?”
  • Traces follow one request across services as a tree of timed spans. They answer “where did this slow or failed request spend its time?”

Kubernetes produces some of these on its own and leaves the rest to you. The kubelet measures resource usage, the control plane writes events, and the container runtime captures stdout. Long-term storage, querying and alerting for all four come from software you install.

Resource metrics

The resource metrics pipelineThe path that carries CPU and memory usage from each kubelet, through metrics-server, to the metrics.k8s.io API that kubectl top and the autoscalers read. is the smallest metrics system a cluster can have. Each kubelet measures container usage, through its built-in cAdvisor reading the cgroups (or from the runtime through the CRI, for runtimes that isolate containers another way), and serves it at /metrics/resource. metrics-server scrapes every kubelet, every 15 seconds by default, keeps only the most recent sample per pod and node in memory, and serves the result through the API server’s aggregation layer as the metrics.k8s.io API. An APIService object tells the API server to proxy that group to metrics-server.

Three clients read it: kubectl top, the HorizontalPodAutoscaler, and the Vertical Pod Autoscaler. Kubernetes 1.37 graduated metrics.k8s.io to v1. metrics-server releases in the 0.9 line serve v1beta1, and the 1.37 HPA controller still reads v1beta1, so both versions matter on a 1.37 cluster.

metrics-server answering kubectl top
kubectl -n kube-system get deployment metrics-server
NAME             READY   UP-TO-DATE   AVAILABLE   AGE
metrics-server   1/1     1            1           2m
kubectl top nodes
NAME               CPU(cores)   CPU(%)   MEMORY(bytes)   MEMORY(%)   
kx-control-plane   221m         5%       1240Mi          15%         
kx-worker          122m         3%       228Mi           2%          
kx-worker2         121m         3%       208Mi           2%          
kx-worker3         122m         3%       400Mi           4%          
kubectl top pods --sort-by=memory
NAME                     CPU(cores)   MEMORY(bytes)   
cache-7f85d74747-xxs4d   1m           192Mi           
web-896845567-dq87d      100m         24Mi            
web-896845567-nshlv      100m         24Mi            
web-896845567-pggpj      100m         24Mi            

Memory here is the working set: what the kernel cannot reclaim without killing something, and what the kubelet compares with eviction thresholds. CPU is a rate over the last scrape window.

Object state metrics

metrics-server knows how much CPU a pod burns. It does not know whether a Deployment has all its replicas, how many times a container restarted, or which pods are stuck Pending. That is object state, and kube-state-metrics turns it into metrics. It watches the API server, as any controller does, and exposes one series per object field in the Prometheus text format: kube_deployment_status_replicas_available, kube_pod_container_status_restarts_total, kube_pod_status_ready, and hundreds more.

kube-state-metrics stores nothing and computes nothing. Each scrape returns the current state, and the metrics system that scrapes it builds the history. kube-state-metrics writes one kube_pod_status_ready series per pod and condition, with the value 1 on the condition that holds, so a query such as kube_pod_status_ready{condition="false"} == 1 lists unready pods, and a range over it shows since when, because Prometheus kept those samples, not because kube-state-metrics did.

A rule of thumb for which source answers what:

QuestionSource
Which pod uses the most memory at this moment?metrics-server, kubectl top
How many replicas are available, and since when?kube-state-metrics, scraped by Prometheus
What was p99 latency during last night’s deploy?Your application’s own metrics, scraped by Prometheus
How busy is the API server?The control-plane components’ /metrics endpoints

The Prometheus model

Prometheus pulls. It discovers targets, from the Kubernetes API among other sources, and fetches each target’s /metrics endpoint on a schedule. Every sample belongs to a series named by a metric name plus labels, such as http_requests_total{job="checkout",code="500"}. PromQL queries across those labels: sum by (code) (rate(http_requests_total{job="checkout"}[5m])) gives the request rate per status code over the last five minutes.

Two kinds of rules run inside Prometheus on a schedule. Recording rules precompute an expensive query into a series of its own, so dashboards and alerts read one cheap series. Alerting rules evaluate a condition and, after it has held for the for duration, send an alert to Alertmanager, which groups, silences and routes alerts to receivers. Alertmanager routes match with matchers, for example matchers: ['severity="page"']; the older match and match_re fields are deprecated.

Latency is usually a histogram. A classic histogram exposes a counter per fixed bucket and you compute quantiles with histogram_quantile. Native histograms, stable since Prometheus 3.8, store exponentially sized buckets in a single series. Enable them per scrape job or globally with scrape_native_histograms; the old feature flag does nothing from Prometheus 3.9.

On Kubernetes, most clusters run Prometheus through the Prometheus Operator, which adds CRDs: Prometheus for the server, ServiceMonitor to scrape the endpoints behind a Service, PodMonitor to scrape pods directly, and PrometheusRule for rules. A ServiceMonitor is selected by labels, so the Prometheus object decides which ServiceMonitors it reads:

apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
  name: checkout
  labels:
    release: monitoring
spec:
  selector:
    matchLabels:
      app: checkout
  endpoints:
    - port: metrics
      interval: 30s

Logs

A container logs by writing to stdout and stderr. The container runtime captures both streams and writes them to a file on the node in the CRI format, one line per write: a timestamp, the stream name, F for a full line or P for a partial one, and the message. The files live under /var/log/pods/<namespace>_<pod>_<uid>/<container>/, numbered by restart. The kubelet also keeps /var/log/containers/<pod>_<namespace>_<container>-<id>.log as symlinks into that tree, so an agent that tails /var/log/containers must also mount /var/log/pods (or all of /var/log) for the links to resolve.

The kubelet rotates these files: by default when one reaches 10Mi (containerLogMaxSize), keeping up to five (containerLogMaxFiles). kubectl logs asks the kubelet for the current file only. --previous reads the last terminated instance of the container; by default the kubelet keeps one terminated instance, with its logs, per container. When the pod is deleted or evicted, its log directory goes with it. Kubernetes has no log storage of its own.

What the node still has
kubectl get pods
NAME                     READY   STATUS    RESTARTS      AGE
cache-7f85d74747-xxs4d   1/1     Running   2 (29s ago)   90s
web-896845567-dq87d      1/1     Running   0             90s
web-896845567-nshlv      1/1     Running   0             90s
web-896845567-pggpj      1/1     Running   0             90s
kubectl get pod -l app=cache -o jsonpath='{.items[0].status.containerStatuses[0].lastState.terminated.reason}'
OOMKilled
kubectl logs deploy/cache --previous --tail=3
{"time":"2026-11-19T09:01:28.256Z","level":"INFO","msg":"cache grew","items":25,"note":"entries are never evicted"}
{"time":"2026-11-19T09:01:29.293Z","level":"INFO","msg":"cache grew","items":26,"note":"entries are never evicted"}
{"time":"2026-11-19T09:01:30.330Z","level":"INFO","msg":"cache grew","items":27,"note":"entries are never evicted"}
kubectl logs -l app=web --prefix --tail=1
[pod/web-896845567-dq87d/web] {"time":"2026-11-19T09:00:37.369Z","level":"INFO","msg":"listening","addr":":8080"}
[pod/web-896845567-nshlv/web] {"time":"2026-11-19T09:00:34.258Z","level":"INFO","msg":"listening","addr":":8080"}
[pod/web-896845567-pggpj/web] {"time":"2026-11-19T09:00:34.258Z","level":"INFO","msg":"listening","addr":":8080"}

The usual architecture is a node logging agent: a DaemonSet, so one pod per node, that mounts /var/log read-only, tails every container’s file, adds Kubernetes metadata, and ships the records to a backend such as Loki, OpenSearch, CloudWatch Logs or an OpenTelemetry Collector. Fluent Bit is the common choice. Its documented Kubernetes input parses both runtime formats:

[INPUT]
    Name              tail
    Path              /var/log/containers/*.log
    multiline.parser  docker, cri
    Tag               kube.*

[FILTER]
    Name       kubernetes
    Match      kube.*
    Merge_Log  On

Three details break naive setups. Since dockershim was removed in Kubernetes 1.24, nodes run a CRI runtime such as containerd or CRI-O, which writes CRI-format lines, so a Parser docker configuration leaves the message unextracted and JSON payloads unmerged. The kubernetes filter calls the API server for pod labels, so the DaemonSet needs a ServiceAccount bound to a ClusterRole with get, list and watch on pods and namespaces; with the default ServiceAccount the calls return 403 and records ship without metadata. And pin the image to a version tag or digest: fluent/fluent-bit:latest follows the 5.x line and changes behaviour on any pull.

Two sidecar patterns cover what a node agent cannot. A streaming sidecar tails a file the app writes and prints it to its own stdout, so the node agent picks it up. An agent sidecar runs a full shipper in the pod, for logs that must never touch the node’s files.

Make logs and traces meet: write structured JSON and include trace_id and span_id in each line, and a log backend can link a line to the request that produced it. Retention is a backend concern; OpenSearch manages index retention with Index State Management (ISM), while Index Lifecycle Management (ILM) is the Elasticsearch feature.

Events

An Event is an API object that a component writes when something happens to another object: the scheduler records FailedScheduling, the kubelet records Pulled, BackOff and Killing, a Deployment controller records ScalingReplicaSet. Repeats are folded into one object with a count. They are the fastest way to learn what the control plane did and why.

They are also short-lived. The API server deletes events after --event-ttl, one hour by default, because they would otherwise flood etcd. kubectl events lists them sorted by time and can filter by type or by the object they concern:

Warning events, and events for one object
kubectl events --types=Warning
LAST SEEN   TYPE      REASON    OBJECT                       MESSAGE
28s         Warning   BackOff   Pod/cache-7f85d74747-xxs4d   Back-off restarting failed container cache in pod cache-7f85d74747-xxs4d_default(479377e0-89c8-43e0-b93d-3762316d18f8)
kubectl events --for deployment/cache
LAST SEEN   TYPE     REASON              OBJECT             MESSAGE
90s         Normal   ScalingReplicaSet   Deployment/cache   Scaled up replica set cache-7f85d74747 from 0 to 1

kubectl events --for deployment/cache shows only the Deployment’s own event. The BackOff belongs to the pod, so follow ownership down to find it.

If an incident review next week needs today’s events, export them as they happen: an event exporter, or the OpenTelemetry Collector’s Kubernetes events receiver, watches events and writes them to your log backend, where they outlive the one-hour TTL.

Traces with OpenTelemetry

OpenTelemetry (OTel), a CNCF project whose graduation CNCF announced on 2026-05-21, standardises how applications produce traces, metrics and logs. Its parts:

  • SDKs and auto-instrumentation create spans in your process. Libraries propagate trace context through HTTP headers only when their instrumentation is enabled; an uninstrumented HTTP client breaks the trace.
  • OTLP is the wire protocol, over gRPC on port 4317 or HTTP on port 4318.
  • The Collector receives, processes and exports telemetry. Its pipelines chain receivers, processors and exporters.
  • Semantic conventions name attributes consistently: service.name, deployment.environment.name, db.system.name, and durations in seconds.

On Kubernetes, the Collector runs in two shapes, often both. As an agent, a DaemonSet with one Collector per node, it receives OTLP from local pods, adds Kubernetes metadata and forwards. As a gateway, a Deployment behind a Service, it centralises sampling, credentials and export. Two traps follow from the shapes. Tail sampling decides per trace, so every span of one trace must reach the same gateway replica; put a layer of Collectors with the loadbalancing exporter keyed on traceID in front of them. And an agent DaemonSet that scrapes Prometheus targets by pod discovery scrapes every pod from every node, duplicating samples; the Operator’s Target Allocator splits targets across Collectors.

Order processors with memory_limiter first and batch last. Receivers bind to localhost by default from Collector v0.104.0, so in a container set endpoint: 0.0.0.0:4317 explicitly.

The SDK reads its configuration from environment variables, so pointing a workload at a Collector is a pod spec change:

apiVersion: apps/v1
kind: Deployment
metadata:
  name: checkout
spec:
  replicas: 2
  selector:
    matchLabels:
      app: checkout
  template:
    metadata:
      labels:
        app: checkout
    spec:
      containers:
        - name: checkout
          image: ghcr.io/kx-labs/web:1.1
          env:
            - name: OTEL_SERVICE_NAME
              value: checkout
            - name: OTEL_EXPORTER_OTLP_ENDPOINT
              value: http://otel-gateway.observability:4318
            - name: OTEL_EXPORTER_OTLP_PROTOCOL
              value: http/protobuf
            - name: OTEL_RESOURCE_ATTRIBUTES
              value: deployment.environment.name=production

The OpenTelemetry Operator goes one step further. An Instrumentation resource describes the exporter and propagators, and an annotation such as instrumentation.opentelemetry.io/inject-python: "true" on a pod template makes the Operator’s webhook inject the language’s auto-instrumentation at admission. Python’s auto-instrumentation exports over http/protobuf to port 4318 and does not support gRPC, so a gateway that listens only on 4317 never hears from it.

Traces end up in a backend. Jaeger v1 reached end of life on 2025-12-31; Jaeger v2 is built on the Collector and takes OTLP directly. Grafana Tempo stores traces cheaply in object storage and is queried with TraceQL, a trace query language distinct from PromQL.

Alerts that page

Every page should mean a user is hurting, or is about to, and that a human must act. That rules out most causes. A node at 80% CPU, one restarted pod, a slow disk: each might matter, and each happens daily without anyone noticing. Page on symptoms measured where users meet the system: error ratio, latency, availability. Send causes to dashboards and ticket queues, where someone looks during working hours.

Service level objectives make symptom alerts precise. With a 99.9% availability target over 30 days, the error budget is 0.1% of requests. Alert on the burn rate, the multiple of the allowed error ratio you are spending. The SRE workbook’s multiwindow pattern pages when 2% of the monthly budget burns in an hour, a burn rate of 14.4, and requires a short window to agree so the alert clears quickly once the problem stops:

groups:
  - name: checkout-slo
    rules:
      - alert: CheckoutErrorBudgetBurn
        expr: |
          (
            sum(rate(http_requests_total{job="checkout",code=~"5.."}[1h]))
            / sum(rate(http_requests_total{job="checkout"}[1h])) > 14.4 * 0.001
          )
          and
          (
            sum(rate(http_requests_total{job="checkout",code=~"5.."}[5m]))
            / sum(rate(http_requests_total{job="checkout"}[5m])) > 14.4 * 0.001
          )
        labels:
          severity: page

The workbook pages on a second pair as well: 5% of the budget in six hours, a burn rate of 6, confirmed over 30 minutes. A slow burn, 10% of the budget over three days at a rate of 1, confirmed over six hours, opens a ticket instead. Alertmanager routes on the severity label with matchers, so one rule file feeds both the pager and the queue.

Install metrics-server and read the four signals

  1. kubectl --context kind-kx apply -f https://github.com/kubernetes-sigs/metrics-server/releases/download/v0.9.1/components.yaml
  2. kubectl --context kind-kx -n kube-system patch deployment metrics-server --type=json -p '[{"op":"add","path":"/spec/template/spec/containers/0/args/-","value":"--kubelet-insecure-tls"}]'
  3. kubectl --context kind-kx get apiservice v1beta1.metrics.k8s.io
  4. kubectl --context kind-kx top nodes
  5. kubectl --context kind-kx -n kube-system top pods --sort-by=memory
  6. kubectl --context kind-kx -n kube-system logs -l k8s-app=kube-dns --prefix --tail=2
  7. kubectl --context kind-kx events -A --types=Warning

For your own kind cluster kx: copy a command and paste it into your terminal. Run in the simulator runs the same command in this page's simulated cluster instead; nothing on this page touches your machine. kind does not install metrics-server, and its kubelets serve self-signed certificates, hence the --kubelet-insecure-tls patch. Allow a minute after the rollout before kubectl top answers.

Actual state

Check your understanding

5 checks

Your first answer to each check is the one that counts. After a miss you can answer again; passing every check reconciles the lesson.

  1. Check 1 of 5

    You want a dashboard of how many replicas each Deployment wants against how many are available, over the last week. Which source gives you that series?

  2. Check 2 of 5

    A pod was evicted for node memory pressure an hour ago and its controller replaced it. Where are the evicted container's logs?

  3. Check 3 of 5

  4. Check 4 of 5

    An OpenTelemetry Collector container runs with a receiver configured as endpoint: localhost:4317. Instrumented pods export to the Collector's Service and their spans never arrive. Why?

  5. Check 5 of 5

    Which alert should wake someone up?

Lesson not yet reconciled

Desired: 4 objectives, 0 metReconciled: 4 of 4 objectives met

  • Explain the resource metrics pipeline from the kubelet through metrics-server to the metrics.k8s.io API, GA in Kubernetes 1.37. (not yet met)
  • Choose metrics-server, kube-state-metrics or Prometheus for a given question. (not yet met)
  • Describe node-level logging, from container stdout through log rotation to a DaemonSet shipper. (not yet met)
  • Instrument a service with OpenTelemetry and run a collector as an agent or a gateway. (not yet met)

Pass every check above to reconcile this lesson.

Every check has passed, so the desired state is met. First-try accuracy: 0 of 5. This lesson's review cards are in your queue.

Practice

Put this lesson to work on the simulated cluster. Everything runs in your browser, with nothing to install.

Changed since the notes

This lesson draws on an earlier set of study notes. Where the documentation contradicts a claim in them, qualifies it or has moved past it, the claim is listed here with the corrected statement and the source it was checked against.

Show 35 corrections
  1. Stale, true once, no longerObservability and Monitoring

    The notes said'Applications instrumented with X-Ray SDK send trace data to X-Ray'

    CorrectedThe X-Ray SDKs and Daemon entered maintenance mode on 2026-02-25 (security fixes only) and reach end of support on 2027-02-25. AWS recommends OpenTelemetry instrumentation (ADOT or upstream SDKs) sending to X-Ray through the CloudWatch agent, an OTel Collector or the CloudWatch OTLP endpoint.

    Sourcedocs.aws.amazon.com/xray/latest/devguide/xray-sdk-daemon-timeline.html

  2. Nuance, true with conditionsObservability and Monitoring

    The notes said'Container Insights… Deployed via CloudWatch agent or ADOT'

    CorrectedCurrent EKS docs deliver Container Insights through the amazon-cloudwatch-observability EKS add-on in two configurations: OTel Container Insights (recommended, actively developed) and Enhanced Container Insights (Classic). Whether a separate ADOT-based Container Insights path is still supported was not confirmed; current docs do not present it.

    Sourcedocs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/deploy-container-insights-EKS.html

  3. Stale, true once, no longerObservability and Monitoring

    The notes saidAlertmanager config using route.routes[].match

    Correctedmatch and match_re are deprecated; use matchers with the =, !=, =~, !~ syntax (for example matchers: ['severity="critical"']). Likewise target_match/source_match give way to target_matchers/source_matchers in inhibit rules.

    Sourceprometheus.io/docs/alerting/latest/configuration

  4. Stale, true once, no longerObservability and Monitoring

    The notes saidJaeger as an OTel-compatible backend

    CorrectedJaeger v1 reached end of life on 2025-12-31. Jaeger v2 is built on the OpenTelemetry Collector (OTLP receiver, Collector-style YAML config), with no agent tier and no Jaeger client libraries; instrument with OpenTelemetry SDKs.

    Sourcejaegertracing.io/download

  5. Stale, true once, no longerObservability and Monitoring

    The notes saidAMP requires in-cluster Prometheus or ADOT for collection

    CorrectedAmazon Managed Service for Prometheus offers AWS managed collectors: fully managed, agentless scrapers that discover and pull metrics from EKS clusters and remote-write them to a workspace, configurable when creating the cluster. In-cluster Prometheus, ADOT or the CloudWatch agent remain options.

    Sourcedocs.aws.amazon.com/prometheus/latest/userguide/AMP-collector.html

  6. Stale, true once, no longerObservability and Monitoring

    The notes saidHistograms described only in classic bucket form

    CorrectedNative histograms are stable since Prometheus 3.8 (scraping enabled per job or globally with scrape_native_histograms; the old feature flag is a no-op from 3.9). Latest is Prometheus 3.16.0. Teach classic and native histograms.

    Sourceprometheus.io/docs/specs/native_histograms

  7. Nuance, true with conditionsObservability and Monitoring

    The notes saidPromises three pillars but has no logging section

    CorrectedThe note is incomplete. Add logs: Fluent Bit (deployed by the amazon-cloudwatch-observability add-on for Container Insights logs) to CloudWatch Logs, Loki, or OpenTelemetry logs, plus log/trace correlation by injecting trace_id/span_id into structured logs.

    Sourcedocs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/deploy-container-insights-EKS.html

  8. Nuance, true with conditionsObservability and Monitoring

    The notes saidServiceMonitor labeled only app: my-app; 'Prometheus discovers Services matching the selector'

    Correctedkube-prometheus-stack defaults to serviceMonitorSelectorNilUsesHelmValues: true, so Prometheus selects only ServiceMonitors labelled release: <helm-release-name>. Add that label or set serviceMonitorSelectorNilUsesHelmValues: false (or an explicit serviceMonitorSelector).

    Sourcegithub.com/prometheus-community/helm-charts/blob/main/charts/kube-prometheus-stack/values.yaml

  9. Stale, true once, no longerLogging Architecture

    The notes saidFluent Bit tail input uses 'Parser docker' for /var/log/containers/*.log; 'Parser docker' is wrong on containerd/CRI runtimes (grouped: two note-41 claims)

    CorrectedSince dockershim was removed in Kubernetes 1.24, EKS nodes run containerd and write CRI-format lines ('<time> stdout|stderr F|P <message>'). The docker JSON parser doesn't match those lines, so the message isn't extracted and JSON app logs aren't merged. Fluent Bit's documented tail configuration for Kubernetes is 'multiline.parser docker, cri' (or 'parser cri' on CRI-only nodes); keep Merge_Log On in the kubernetes filter to lift JSON payloads.

    Sourcedocs.fluentbit.io/manual/data-pipeline/filters/kubernetes

  10. Nuance, true with conditionsLogging Architecture

    The notes saidimage: fluent/fluent-bit:latest with the cloudwatch_logs / opensearch outputs shown; the :latest tag also contradicts note 45's rule against :latest (grouped)

    Correctedfluent/fluent-bit:latest resolves to the Fluent Bit 5.x line (v5.2.0 is the most recent release as of 2026-11-19), so a manifest written for 2.x/3.x can change behaviour on any pull. Pin a version tag or digest, as note 45 and the Kubernetes images guidance require. AWS for Fluent Bit 3.0.0 (Oct 2025) is built on Fluent Bit 4.1. For the opensearch and es outputs, set Suppress_Type_Name On: OpenSearch 2.x and Elasticsearch 8 reject mapping types.

    Sourcedocs.fluentbit.io/manual/data-pipeline/outputs/opensearch%20;%20https://kubernetes.io/docs/concepts/containers/images/%20;%20https://aws.amazon.com/about-aws/whats-new/2025/10/aws-fluent-bit-3-0-0-based-4-1-0

  11. Nuance, true with conditionsLogging Architecture

    The notes saidCloudWatch Container Insights provides deeper EKS integration (logs + metrics + dashboards)

    CorrectedTrue, but the install path is the amazon-cloudwatch-observability EKS add-on, which offers two modes: OTel Container Insights (AWS's recommended mode; add-on v6.2.0+, EKS 1.28+, cAdvisor/node-exporter/kube-state-metrics metrics queryable with PromQL) and Enhanced Container Insights (Classic), which is in maintenance mode.

    Sourcedocs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/container-insights-eks-compare.html%20;%20https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/deploy-container-insights-EKS.html

  12. Nuance, true with conditionsLogging Architecture

    The notes saidCloudWatch Logs retention is configurable 1 day to 10 years, or never expire

    CorrectedThe range is right, but retention takes only discrete values: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1096, 1827, 2192, 2557, 2922, 3288 or 3653 days, or never expire (no retention policy). An account-level retention policy, where one is set, overrides the log group's setting. For cost, the lower-cost log class formerly called Infrequent Access is named Essentials (read APIs return ESSENTIALS from Dec 2026).

    Sourcedocs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutRetentionPolicy.html%20;%20https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch_Logs_Log_Classes.html

  13. Nuance, true with conditionsLogging Architecture

    The notes saidWith AWS_Auth, Fluent Bit uses IAM credentials (from IRSA)

    CorrectedFluent Bit's AWS plugins use the standard AWS credential chain, which includes both IRSA and EKS Pod Identity. EKS best practices recommend Pod Identity unless you need IRSA; Pod Identity isn't available for Fargate or Windows pods, where IRSA remains the option.

    Sourcedocs.fluentbit.io/manual/administration/aws-credentials%20;%20https://docs.aws.amazon.com/eks/latest/best-practices/identity-and-access-management.html

  14. Nuance, true with conditionsLogging Architecture

    The notes saidSymlink direction stated loosely: /var/log/containers/*.log are symlinks pointing into /var/log/pods/<ns><pod><uid>/<container>/N.log

    CorrectedConfirmed. The kubelet creates /var/log/containers/<pod><namespace><container>-<id>.log as legacy symlinks to /var/log/pods/<namespace><pod><uid>/<container>/<restart>.log, where the files actually live. A tail DaemonSet must mount /var/log (or both directories) so the symlink targets resolve.

    Sourcegithub.com/kubernetes/kubernetes/blob/master/pkg/kubelet/kuberuntime/legacy.go

  15. Wrong, not trueLogging Architecture

    The notes saidDaemonSet has no serviceAccountName and no RBAC, but the kubernetes filter needs get/list/watch on pods and namespaces

    CorrectedConfirmed. The kubernetes filter calls the API server for pod metadata, so the DaemonSet needs a ServiceAccount bound to a ClusterRole with get, list and watch on pods and namespaces (plus nodes/proxy when Use_Kubelet is on). With the default ServiceAccount those calls are denied (403) and records ship without Kubernetes metadata.

    Sourcedocs.fluentbit.io/manual/data-pipeline/filters/kubernetes

  16. Wrong, not trueLogging Architecture

    The notes said'OpenSearch/Elasticsearch uses Index Lifecycle Management' (ILM is Elasticsearch-only; conflates OpenSearch with Amazon OpenSearch Service)

    CorrectedConfirmed. Index Lifecycle Management (ILM) is an Elasticsearch feature. OpenSearch, including Amazon OpenSearch Service (AWS's managed service that runs OpenSearch), uses Index State Management (ISM) policies for rollover, retention and deletion.

    Sourcedocs.aws.amazon.com/opensearch-service/latest/developerguide/ism.html

  17. Nuance, true with conditionsAWS CloudWatch Deep Dive

    The notes saidEnabling Container Insights for EKS deploys the CloudWatch Agent as a DaemonSet

    CorrectedContainer Insights on EKS is installed through the amazon-cloudwatch-observability EKS add-on, which runs the CloudWatch agent and Fluent Bit as DaemonSets. AWS recommends the add-on's OTel Container Insights mode (v6.2.0+); Enhanced Container Insights (Classic) is in maintenance mode.

    Sourcedocs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/container-insights-eks-compare.html%20;%20https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/container-insights-eks-classic.html

  18. Nuance, true with conditionsAWS CloudWatch Deep Dive

    The notes saidLogs Insights SQL-like query syntax

    CorrectedCloudWatch Logs Insights supports three query languages: Logs Insights QL (its own pipe-based language), OpenSearch PPL and OpenSearch SQL.

    Sourcedocs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_AnalyzeLogData_Languages.html

  19. Nuance, true with conditionsAWS CloudWatch Deep Dive

    The notes saidSubscription filters to Lambda, Firehose, OpenSearch; subscription filters reach OpenSearch through a console-created Lambda (grouped)

    CorrectedA log group can have up to five subscription filters (the review's two-filter limit is out of date). PutSubscriptionFilter destinations are Kinesis Data Streams, Amazon Data Firehose, Lambda (same account) and logical destinations (Kinesis or Firehose) for cross-account delivery; account-level subscription filters also exist. OpenSearch Service isn't a native destination: send through Firehose with an OpenSearch destination, or use the console's 'Create Amazon OpenSearch Service subscription filter'. Whether that console option still creates a Lambda function isn't stated in the docs (unconfirmed).

    Sourcedocs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutSubscriptionFilter.html%20;%20https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/SubscriptionFilters.html

  20. Nuance, true with conditionsAWS CloudWatch Deep Dive

    The notes said'The agent collects metrics from the Kubernetes API'

    CorrectedConfirmed. Container Insights collects container metrics from cAdvisor in each node's kubelet and node metrics from node-exporter. Object-state metrics come from kube-state-metrics, which watches the API server, and the API server is scraped for its own metrics. The Kubernetes API is not the main source of usage metrics.

    Sourcedocs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/container-insights-eks-otel.html

  21. Nuance, true with conditionsOpenTelemetry Deep Dive

    The notes saidOpenTelemetry is the second-largest CNCF project

    CorrectedOpenTelemetry has the second-highest CNCF velocity and graduated on 2026-05-21.

    Sourcecncf.io/announcements/2026/05/21/cloud-native-computing-foundation-announces-opentelemetrys-graduation

  22. Stale, true once, no longerOpenTelemetry Deep Dive

    The notes saidResource attributes deployment.environment and db.system

    CorrectedUse deployment.environment.name and db.system.name.

    Sourceopentelemetry.io/docs/specs/semconv/registry/attributes/deployment

  23. Nuance, true with conditionsOpenTelemetry Deep Dive

    The notes saidPython meter.create_gauge

    CorrectedNot verified for a specific SDK version; check the installed opentelemetry-api.

    Sourceopentelemetry-python.readthedocs.io/en/latest/api/metrics.html

  24. Nuance, true with conditionsOpenTelemetry Deep Dive

    The notes saidX-Ray via aws-otel-collector:latest DaemonSet

    CorrectedThe X-Ray SDKs and daemon have been in maintenance since 2026-02-25, with end of support on 2027-02-25. Use the ADOT or CloudWatch Observability add-on, and pin image versions.

    Sourcedocs.aws.amazon.com/xray/latest/devguide/xray-daemon-eos.html

  25. Stale, true once, no longerOpenTelemetry Deep Dive

    The notes saidCollector receivers listen on 0.0.0.0 by default

    CorrectedThe default bind address has been localhost since v0.104.0. Set 0.0.0.0 explicitly in containers.

    Sourceopentelemetry.io/blog/2024/hardening-the-collector-one

  26. Wrong, not trueOpenTelemetry Deep Dive

    The notes saidPython auto-instrumentation exports to port 4317

    CorrectedPython auto-instrumentation uses http/protobuf on port 4318; gRPC is not supported.

    Sourceopentelemetry.io/docs/platforms/kubernetes/operator/automatic

  27. Wrong, not trueOpenTelemetry Deep Dive

    The notes saidCore collector image lacks the prometheus receiver/prometheusremotewrite exporter

    CorrectedThe core distribution includes both. It lacks awsxray, so a config that uses awsxray still fails on the core image.

    Sourcegithub.com/open-telemetry/opentelemetry-collector-releases/blob/main/distributions/otelcol/manifest.yaml

  28. Wrong, not trueOpenTelemetry Deep Dive

    The notes saidHTTP metric names and units as written

    CorrectedDurations are in seconds, and the active-requests metric is http.server.active_requests.

    Sourceopentelemetry.io/docs/specs/semconv/http/http-metrics

  29. Wrong, not trueOpenTelemetry Deep Dive

    The notes saidProcessor order with batch before memory_limiter

    Correctedmemory_limiter goes first and batch goes last.

    Sourcegithub.com/open-telemetry/opentelemetry-collector/blob/main/processor/README.md

  30. Wrong, not trueOpenTelemetry Deep Dive

    The notes saidtraces{…} query presented as PromQL

    CorrectedThat syntax is TraceQL.

    Sourcegrafana.com/docs/tempo/latest/traceql

  31. Wrong, not trueOpenTelemetry Deep Dive

    The notes saidExemplar exposition syntax

    CorrectedThe exemplar must include its value after the label set.

    Sourcegithub.com/prometheus/OpenMetrics/blob/main/specification/OpenMetrics.md

  32. Wrong, not trueOpenTelemetry Deep Dive

    The notes saidrequests propagates trace headers automatically

    Correctedrequests needs the requests instrumentation enabled.

    Sourceopentelemetry-python-contrib.readthedocs.io/en/latest/instrumentation/requests/requests.html

  33. Wrong, not trueOpenTelemetry Deep Dive

    The notes saidView example without the aggregation import

    CorrectedImport ExplicitBucketHistogramAggregation.

    Sourceopentelemetry-python.readthedocs.io/en/latest/sdk/metrics.view.html

  34. Wrong, not trueOpenTelemetry Deep Dive

    The notes saidDaemonSet collector with pod service discovery

    CorrectedEvery replica scrapes every pod, so samples are duplicated. Use the Target Allocator or filter by node.

    Sourcegithub.com/open-telemetry/opentelemetry-operator/blob/main/cmd/otel-allocator/README.md

  35. Wrong, not trueOpenTelemetry Deep Dive

    The notes saidTail sampling across multiple replicas

    CorrectedRoute spans with the loadbalancing exporter keyed on traceID so each trace reaches one replica.

    Sourcegithub.com/open-telemetry/opentelemetry-collector-contrib/blob/main/processor/tailsamplingprocessor/README.md

Every correction across the guide, by note and topic.

Sources

Checked against kubernetes.io and AWS documentation for Kubernetes 1.37 on .

  1. kubernetes.io/docs/tasks/debug/debug-cluster/resource-metrics-pipeline
  2. kubernetes.io/docs/concepts/cluster-administration/kube-state-metrics
  3. kubernetes.io/docs/concepts/cluster-administration/system-metrics
  4. kubernetes.io/docs/concepts/cluster-administration/logging
  5. kubernetes.io/docs/reference/kubernetes-api/cluster-resources/event-v1
  6. kubernetes.io/docs/reference/command-line-tools-reference/kube-apiserver
  7. kubernetes.io/docs/reference/kubectl/generated/kubectl_events
  8. github.com/kubernetes-sigs/metrics-server
  9. github.com/kubernetes/kube-state-metrics
  10. prometheus.io/docs/introduction/overview
  11. prometheus.io/docs/prometheus/latest/configuration/recording_rules
  12. prometheus.io/docs/alerting/latest/configuration
  13. prometheus.io/docs/specs/native_histograms
  14. prometheus-operator.dev/docs/developer/getting-started
  15. docs.fluentbit.io/manual/installation/downloads/kubernetes
  16. cncf.io/announcements/2026/05/21/cloud-native-computing-foundation-announces-opentelemetrys-graduation-solidifying-status-as-the-de-facto-observability-standard
  17. opentelemetry.io/docs/specs/otlp
  18. opentelemetry.io/docs/collector/deploy
  19. opentelemetry.io/blog/2024/hardening-the-collector-one
  20. github.com/open-telemetry/opentelemetry-collector/blob/main/processor/README.md
  21. opentelemetry.io/docs/platforms/kubernetes/operator/automatic
  22. opentelemetry.io/docs/platforms/kubernetes/operator/target-allocator
  23. opentelemetry.io/docs/specs/semconv/registry/attributes/deployment
  24. jaegertracing.io/download
  25. grafana.com/docs/tempo/latest/traceql
  26. sre.google/workbook/alerting-on-slos
  27. docs.aws.amazon.com/eks/latest/userguide/metrics-server.html
  28. docs.aws.amazon.com/eks/latest/userguide/workloads-add-ons-available-eks.html
  29. docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/install-CloudWatch-Observability-EKS-addon.html
  30. docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/container-insights-eks-compare.html
  31. docs.aws.amazon.com/AmazonCloudWatch/latest/logs/SubscriptionFilters.html
  32. docs.aws.amazon.com/eks/latest/userguide/opentelemetry.html
  33. docs.aws.amazon.com/prometheus/latest/userguide/AMP-collector.html
  34. docs.aws.amazon.com/prometheus/latest/userguide/what-is-Amazon-Managed-Service-Prometheus.html
  35. docs.aws.amazon.com/grafana/latest/userguide/what-is-Amazon-Managed-Service-Grafana.html
  36. docs.aws.amazon.com/xray/latest/devguide/xray-sdk-daemon-timeline.html

Metrics, logs, events and traces

↓ ↑ step, 1 to 8 scene, Esc leave

kind cluster kxLast command: Nothing run yet