Prometheus Flashcards

๐Ÿ“ˆ Prometheus Flashcards

Open-source monitoring & alerting toolkit for time series metrics

๐Ÿ’ก What is Prometheus?

Prometheus is an open-source monitoring system and time series database designed for collecting metrics, generating alerts, and enabling observability across systems.

๐Ÿ—„๏ธ Time Series Database (TSDB)

Stores all metrics as timestamped key-value pairs, organized by metric name and labels for fast querying and long-term retention.

๐Ÿ“ฅ Pull Model

Scrapes metrics from instrumented targets over HTTP at regular intervals, allowing dynamic discovery of services.

๐Ÿ“ค Pushgateway

Component for accepting metrics pushed from short-lived jobs or batch processes, storing them for Prometheus to scrape.

๐Ÿงฎ PromQL

A flexible query language for aggregating, filtering, and transforming time series data, enabling complex analytics and visualizations.

๐Ÿ” Service Discovery

Automatically finds scrape targets through integrations like Kubernetes, Consul, EC2, DNS, and static configs.

๐Ÿšจ Alertmanager

Receives alerts from Prometheus, deduplicates and groups them, then routes notifications to email, Slack, PagerDuty, and more.

๐Ÿ“Š Metric Types

Supports four core metric types: counters, gauges, histograms, and summaries, each suited for different measurement patterns.

๐Ÿ“ฆ Exporters

Plugins that expose metrics from third-party systems such as databases, web servers, hardware devices, and cloud services.

๐Ÿ›ก๏ธ Reliability

Runs standalone without external dependencies, using local storage for resilience and optional remote write for backups.

๐Ÿ”— Grafana Integration

Easily connects to Grafana for building real-time dashboards and advanced visualizations using Prometheus queries.

๐Ÿš€ Deployment

Deployable as a binary, Docker container, or Kubernetes service; supports scaling with federation and sharding for large environments.