Prometheus
An open-source monitoring system that regularly fetches metrics from services, stores them as time series and lets you query and alert on them.
In more detail
Prometheus pulls a text page of numbers from each target over HTTP on a schedule and stores every value with a timestamp. You ask it questions in its query language, PromQL, and it can evaluate alerting rules itself. It is written in Go and is a Cloud Native Computing Foundation project.
Examples
curl -s localhost:9090/api/v1/targets lists the pages Prometheus is fetching.Rollout analysis queries the canary’s 5xx error rate and latency percentiles.Go: one of the well-known infrastructure tools written in Go (m01l01)Related terms
- PromQL — The query language of Prometheus, used to select time series and calculate rates, sums and percentiles from them.
- scrape — One fetch by Prometheus of a service's metrics page over HTTP, whose values are then stored with a timestamp.
- time series — A sequence of timestamped values for one metric name with one exact set of label values.
- Grafana — An open-source tool for building dashboards and exploring data, which sends queries to data sources such as Prometheus and Loki and draws the results.
- alerting rule — A Prometheus rule with a PromQL expression that describes an unhealthy condition, plus a for duration, labels and annotations.
- Argo Rollouts — A Kubernetes controller that adds canary and blue-green strategies through a Rollout object that replaces a Deployment.
- service level indicator — A measurement of how well a service is doing for users, usually good events divided by eligible events.
- error rate — The share of requests that fail, reported alongside latency so a fast result is not mistaken for a healthy one.
- Go — An open-source programming language from Google, known for simple syntax, fast compilation and built-in concurrency.
- Kubernetes — An open-source system that runs and manages containers across a cluster of machines.
Taught in
- AnalysisTemplate And AnalysisRun: Letting Metrics Decide — Certified Argo Project Associate (CAPA) Exam Prep
- Friday, Four Fifty: Progressive Delivery — Certified GitOps Associate (CGOA) Exam Prep
- A Rollback Nobody Heard: Notifications, Observability And CI — Certified GitOps Associate (CGOA) Exam Prep
- Kubernetes NetworkPolicies & Microsegmentation — Cloud Security & DevSecOps Engineering
- Two Controllers At Once — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- Continuous Delivery: Blue-Green & Canary Pipelines — Production Full-Stack Engineering
- What Go Is and Why It Matters — Concurrent Systems Programming with Go
- Observability Versus Monitoring — Full-Stack Observability: Metrics, Tracing & Logging
- Metric Types: Counters And Gauges — Full-Stack Observability: Metrics, Tracing & Logging
- Metric Types: Summaries And Histograms — Full-Stack Observability: Metrics, Tracing & Logging
- Why A Histogram Beats An Average — Full-Stack Observability: Metrics, Tracing & Logging
- Cardinality And How It Bankrupts You — Full-Stack Observability: Metrics, Tracing & Logging
- Prometheus Scraping And The Pull Model — Full-Stack Observability: Metrics, Tracing & Logging
- The Prometheus Exposition Format — Full-Stack Observability: Metrics, Tracing & Logging
- PromQL Basics And Selectors — Full-Stack Observability: Metrics, Tracing & Logging
- Rates And Increases Over Time — Full-Stack Observability: Metrics, Tracing & Logging
- Calculating Percentiles With histogram_quantile — Full-Stack Observability: Metrics, Tracing & Logging
- Grafana: Connecting The Data Source — Full-Stack Observability: Metrics, Tracing & Logging
- Alerting Rules And The For Duration — Full-Stack Observability: Metrics, Tracing & Logging
- Four Bookings Or Two: Instruments And Temporality — OpenTelemetry Certified Associate (OTCA) Exam Prep
- The Spans Of A Job That Ended Too Soon: SDK Pipelines — OpenTelemetry Certified Associate (OTCA) Exam Prep
- Fifty Four In, Two Out: Debugging A Pipeline — OpenTelemetry Certified Associate (OTCA) Exam Prep
- Maintenance Sprint: Symptoms First — OpenTelemetry Certified Associate (OTCA) Exam Prep
- The Evening Before: Final Review — OpenTelemetry Certified Associate (OTCA) Exam Prep
- Six Minutes Nobody Saw: Prometheus In One Outage — Prometheus Certified Associate (PCA) Exam Prep
- Ninety Minutes, No Question Count: Exam Strategy — Prometheus Certified Associate (PCA) Exam Prep
- Forty Seconds At Two: Push, Pull And Service Discovery — Prometheus Certified Associate (PCA) Exam Prep
- Ninety Nine Percent Of What? SLIs, SLOs And SLAs — Prometheus Certified Associate (PCA) Exam Prep
- Observability Sprint: One Failed Checkout — Prometheus Certified Associate (PCA) Exam Prep
- Where Did Two Hours Go? Prometheus Architecture — Prometheus Certified Associate (PCA) Exam Prep
- A Week Without A Scrape: Configuration And Relabelling — Prometheus Certified Associate (PCA) Exam Prep
- Cart Versus cart: The Data Model And What A Scrape Returns — Prometheus Certified Associate (PCA) Exam Prep
- Off By Five: What Prometheus Is Not For — Prometheus Certified Associate (PCA) Exam Prep
- Fundamentals Sprint: Nine Calls On The Server — Prometheus Certified Associate (PCA) Exam Prep
- The Server That Would Not Die: Selecting Data — Prometheus Certified Associate (PCA) Exam Prep
- Four Thousand Requests Vanished: Rates And Derivatives — Prometheus Certified Associate (PCA) Exam Prep
- Fifteen Requests Nobody Saw: Aggregating Over Time — Prometheus Certified Associate (PCA) Exam Prep
- Fifteen Lines And No Answer: Aggregating Over Labels — Prometheus Certified Associate (PCA) Exam Prep
- Is The New Version Worse? Binary Operators And Matching — Prometheus Certified Associate (PCA) Exam Prep
- Under A Second, On Average: Histograms — Prometheus Certified Associate (PCA) Exam Prep
- The Export That Failed Quietly: Timestamp Metrics — Prometheus Certified Associate (PCA) Exam Prep
- PromQL Sprint: Ten Queries At Minute Twenty Two — Prometheus Certified Associate (PCA) Exam Prep
- Thirty Second Checkouts Nobody Saw: Client Libraries — Prometheus Certified Associate (PCA) Exam Prep
- A Database You Cannot Recompile: Exporters — Prometheus Certified Associate (PCA) Exam Prep
- Milliseconds Versus Seconds: Naming Metrics And Labels — Prometheus Certified Associate (PCA) Exam Prep
- Instrumentation Sprint: Sixteen Calls On Code And Exporters — Prometheus Certified Associate (PCA) Exam Prep
- Paged Three Minutes Late: Alerting Rules — Prometheus Certified Associate (PCA) Exam Prep
- Forty One Buzzes: Routing Alerts With Alertmanager — Prometheus Certified Associate (PCA) Exam Prep
- Twelve Green Panels: Dashboarding Basics — Prometheus Certified Associate (PCA) Exam Prep
- Alerting Sprint: Eleven Calls In Three Rounds — Prometheus Certified Associate (PCA) Exam Prep
- Seventy Seven Percent, Book Now? The Full Mock — Prometheus Certified Associate (PCA) Exam Prep
- One Week, Three Objectives: Final Review — Prometheus Certified Associate (PCA) Exam Prep
References
Certification courses
- CAPA course and practice exam: Certified Argo Project Associate
- CGOA course and practice exam: Certified GitOps Associate
- CCDAK and CCAAK course and practice exams: Confluent Apache Kafka certifications
- OTCA course and practice exam: OpenTelemetry Certified Associate
- PCA course and practice exam: Prometheus Certified Associate