Prometheus Flashcards

📊 Prometheus Flashcards
📡 What is Prometheus?
Prometheus is an open-source monitoring system and time series database developed by SoundCloud.

⏱️ What type of data does Prometheus store?
It stores time-series data identified by metric name and key-value pairs (labels).

🔍 What is PromQL?
PromQL is Prometheus Query Language, used to extract and manipulate time-series data.

📥 How does Prometheus collect data?
Prometheus uses a pull-based model by scraping HTTP endpoints on targets.

📈 What is a metric?
A metric is a measurable value such as CPU usage or request rate tracked over time.

🔄 What are exporters?
Exporters are tools that expose metrics for third-party systems in a Prometheus-compatible format.

💾 Where is data stored in Prometheus?
Prometheus stores data locally on disk using a custom time-series database format.

⏰ What is a scrape interval?
It’s the frequency at which Prometheus pulls metrics from targets, e.g., every 15s.

🧩 What is a target?
A target is an endpoint that Prometheus scrapes for metrics, usually a service or exporter.

🔔 How does alerting work in Prometheus?
Prometheus evaluates alerting rules and sends alerts to Alertmanager when triggered.

📡 What is Alertmanager?
Alertmanager handles alerts sent by Prometheus, managing silencing, grouping, and routing.

⚙️ How is Prometheus configured?
Using a YAML configuration file (`prometheus.yml`) that defines scrape configs, targets, and rules.