KCNA Study Guide: Prometheus Metrics and Kubernetes Observability
Practice KCNA cloud native observability with an original example on Prometheus counters, gauges, histograms, and deployment comparisons.
For KCNA, start with the question you need to answer. A counter can show how many events occurred, a gauge can show a current value, and a histogram can show how observations are distributed.
Choose a metric type from the measurement
A Kubernetes service generates thumbnail previews. Operators need to know how many requests complete, how many jobs are waiting now, and how long image generation takes. Use counters for completed and failed requests, a gauge for current queue depth, and a histogram for durations. Those measurements describe distinct properties of the same service.
A counter generally increases and can reset when a process restarts. Looking at an appropriate rate over a window helps compare event activity over time. Queue depth can increase or fall, so a gauge is a better fit. A histogram records observations across buckets, enabling a team to ask how many requests meet a defined duration threshold.
Compare a deployment before and after a change
Suppose an update doubles failed requests per minute from two to four. Total requests per minute rise from 200 to 800 in the same comparison. The first failure fraction is 1 percent, and the second is 0.5 percent. Both the count and fraction are correct. The count can help estimate operational workload, while the fraction may better describe the experience of a typical request.
Now split the comparison by application revision, assuming the metrics carry usable revision labels. A small bad revision can be hard to see in the overall average. Check traffic volume and request mix before attributing a change to the rollout. A new revision that handles only large images might show longer durations because its inputs differ.
Use metrics, logs, and traces for different evidence
The dashboard shows a queue growing while failure fraction stays stable. First ask whether workers are keeping up with incoming requests. Compare arrival and completion rates over the same window. Then use logs to inspect representative slow jobs and traces, if available, to see which operation consumed time on a specific path. Metrics help you see when and where to investigate.
Choose stable, bounded labels such as a known worker revision or result class. A unique order identifier would generate a separate series for each order if used as a metric label. Put detailed identifiers in an appropriate log or trace field instead, so operators can diagnose individual cases without expanding the set of metric series for every request.
Work an original KCNA scenario
After a deployment, the total request counter stops showing a steady increase and appears to drop once. The pending job gauge rises, and requests are still accepted. What do you verify first? Check whether Pods restarted and whether the counter reset. Compare accepted and completed rates over the same window before deciding whether the queue is growing because of demand or slower worker throughput.
For a final drill, write a second case where the average duration stays steady but the number of requests exceeding a target rises. Explain why a duration distribution helps you see this and name a log or trace you would use to investigate an example request.
To review your dashboard design, write the unit beside each metric and show the comparison window. A flat value could reflect steady behavior or missing data. Check for recent samples before interpreting an unchanged chart, and keep the collection signal separate from the service behavior you are trying to measure.
Your next steps
- Match the signal to the question.
- Compare failures using an appropriate traffic denominator.
- Use logs or traces to investigate a concrete example after locating it with metrics.
Sources & official resources
Linked resources checked on 2026-12-01. Technical behavior and provider guidance can change; check the documentation for the version you use.
About this guide and its recommendations
Published by Prep With Proof with AI-assisted drafting. Study routines and examples are editorial suggestions, not official exam instructions or claims of a learner's personal results. Cited provider facts are linked; ownership of recommended Prep With Proof products is disclosed. No competitor endorsement or guaranteed certification outcome is implied.
Suggest a correction →