0
0
Kubernetesdevops~5 mins

Prometheus for metrics collection in Kubernetes - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is Prometheus in the context of Kubernetes?
Prometheus is an open-source tool used to collect and store metrics from Kubernetes clusters. It helps monitor the health and performance of applications and infrastructure.
Click to reveal answer
beginner
How does Prometheus collect metrics from Kubernetes?
Prometheus collects metrics by scraping HTTP endpoints exposed by Kubernetes components and applications. These endpoints provide data in a format Prometheus understands.
Click to reveal answer
beginner
What is a 'scrape target' in Prometheus?
A scrape target is any endpoint that Prometheus regularly contacts to collect metrics. In Kubernetes, these targets are often pods or services exposing metrics endpoints.
Click to reveal answer
intermediate
What role does the Prometheus Operator play in Kubernetes?
The Prometheus Operator simplifies deploying and managing Prometheus instances in Kubernetes. It automates configuration and lifecycle management using Kubernetes custom resources.
Click to reveal answer
intermediate
Why is Prometheus considered a pull-based monitoring system?
Prometheus uses a pull model where it actively scrapes metrics from targets at regular intervals, unlike push models where targets send data to the monitoring system.
Click to reveal answer
What format does Prometheus expect metrics to be exposed in?
APlain text format with specific metric syntax
BJSON format
CXML format
DBinary format
Which Kubernetes resource does the Prometheus Operator use to manage Prometheus instances?
AConfigMaps
BCustom Resource Definitions (CRDs)
CSecrets
DPods
How does Prometheus discover targets in a Kubernetes cluster?
AManually listing IP addresses
BThrough log files
CUsing DNS only
DUsing Kubernetes service discovery APIs
What is the default data storage method used by Prometheus?
ARelational database
BCloud storage
CLocal disk storage
DIn-memory only
Which protocol does Prometheus use to scrape metrics endpoints?
AHTTP
BFTP
CSSH
DSMTP
Explain how Prometheus collects and stores metrics in a Kubernetes environment.
Think about how Prometheus finds targets and what it does with the data.
You got /4 concepts.
    Describe the benefits of using the Prometheus Operator in Kubernetes.
    Focus on how it helps manage Prometheus instances.
    You got /4 concepts.