Prometheus

Overview

Prometheus is a pull-based monitoring system that scrapes metric endpoints and stores time-series data.

Core Concepts

flowchart LR A[Services] --> B[/metrics endpoints] B --> C[Prometheus] C --> D[Grafana] C --> E[Alertmanager]

Practical Example

scrape_configs: - job_name: "orders" static_configs: - targets: ["orders:8080"]

Production Example

A Kubernetes platform uses service discovery and relabeling rules to monitor thousands of pods with team ownership labels.

Common Pitfalls

Key Takeaways