Recall & Review
beginner
What is Prometheus used for in microservices?
Prometheus is used to collect and store metrics from microservices. It helps monitor system health and performance by gathering data like request counts and response times.
Click to reveal answer
beginner
What format does Prometheus expect metrics to be exposed in?
Prometheus expects metrics to be exposed in a simple text format called the Prometheus exposition format, usually via an HTTP endpoint like /metrics.
Click to reveal answer
intermediate
How does Prometheus collect metrics from microservices?
Prometheus uses a pull model. It regularly sends HTTP requests to microservices' /metrics endpoints to fetch the latest metrics data.
Click to reveal answer
intermediate
What is a 'scrape config' in Prometheus?
A scrape config tells Prometheus where to find metrics endpoints and how often to collect data from them.
Click to reveal answer
beginner
Name two common metric types Prometheus collects.
Counter (counts events like requests) and Gauge (measures values like current memory usage).
Click to reveal answer
How does Prometheus get metrics from microservices?
✗ Incorrect
Prometheus uses a pull model, regularly requesting metrics from microservices' /metrics endpoints.
Which of these is NOT a Prometheus metric type?
✗ Incorrect
'Database' is not a metric type. Common types include Counter, Gauge, and Histogram.
What does a Prometheus scrape config define?
✗ Incorrect
Scrape configs tell Prometheus where to find metrics endpoints and how often to scrape them.
What HTTP path do microservices usually expose metrics on for Prometheus?
✗ Incorrect
The standard path for Prometheus metrics is /metrics.
Why is Prometheus popular for microservices monitoring?
✗ Incorrect
Prometheus supports dynamic discovery of services and powerful queries, making it ideal for microservices.
Explain how Prometheus collects and stores metrics from microservices.
Think about how Prometheus asks microservices for data and where it finds that data.
You got /4 concepts.
Describe the difference between Counter and Gauge metric types in Prometheus.
One counts up only, the other can go up or down.
You got /3 concepts.