Kubernetes and Cloud Native Associate (KCNA)Cloud Native ObservabilityEasy
A development team is deploying a new microservices application to a Kubernetes cluster. They need to collect detailed performance metrics from each service, including CPU usage, memory consumption, network I/O, and custom application-specific metrics. Which CNCF-graduated project is best suited for this purpose?
- AFluentd
- BJaeger
- COpenTelemetry
- DPrometheus
Show answer & explanationAnswer & explanation
Correct answer: D. Prometheus
Prometheus is a powerful open-source monitoring system designed for reliability and scalability, specifically for collecting and processing metrics from cloud-native environments like Kubernetes.
Why the other options are wrong
- A. Fluentd is primarily used for log aggregation and forwarding, not metrics collection.
- B. Jaeger is a distributed tracing system, used for observing requests as they flow through microservices.
- C. OpenTelemetry is a set of APIs, SDKs, and tools for generating and exporting telemetry data (metrics, logs, traces), but Prometheus is the direct metric collection system here.
Prometheus
An open-source monitoring system with a time-series database, designed for reliability and scalability.
- Pulls metrics via HTTP endpoints.
- Stores data in a time-series database.
- Provides a powerful query language (PromQL).
Memory trick: P for Performance, Prometheus for metrics.