# Prometheus

> A free tool that reads numbers from apps on a timer and keeps them.

**Field:** Infrastructure  
**Category:** Monitoring & Observability  
**Also known as:** Prometheus Monitoring, PromQL, Prometheus Server

## Think of it like

It is like a nurse on rounds. Every few seconds, she visits each bed and writes down what she sees.

## Definition

Prometheus is a free, open source tool for collecting and storing metrics. It visits each app on a schedule and reads its numbers from a web page. This is called scraping. Every number is saved with its time and labels. You ask questions with its own query language, PromQL. A part called Alertmanager sends out the alerts.

## Example

Jack's Prometheus reads each server every 15 seconds. One query shows the error rate of the whole shop for the last hour.

## Example code

```promql
rate(http_requests_total[5m])
```

Requests per second, worked out over the last five minutes.

## Why it matters

It is one of the most used tools for metrics. Many apps already offer a page in its format.

## Common mistake

Using it to store logs or single events. It is made for numbers over time, not for text.

## Three principles

- **It pulls.** It reads each app on a schedule.
- **Labels on everything.** Numbers are split by named tags.
- **Its own query language.** PromQL turns raw counts into rates.

## Related terms

- [Metric (Monitoring)](https://learn.benibix.com/term/infrastructure/metric)
- [Grafana](https://learn.benibix.com/term/infrastructure/grafana)
- [Alerting](https://learn.benibix.com/term/infrastructure/alerting)
- [Monitoring](https://learn.benibix.com/term/infrastructure/monitoring)
- [OpenTelemetry (OTel)](https://learn.benibix.com/term/infrastructure/opentelemetry)
- [Prometheus Exporter](https://learn.benibix.com/term/infrastructure/prometheus-exporter)

## Told apart from

- [Prometheus vs Grafana](https://learn.benibix.com/compare/prometheus-vs-grafana): People think Grafana collects the numbers on its charts, and it does not. Prometheus visits each app on a timer, reads its numbers and stores them. Grafana reads from a store like Prometheus and draws the charts. One keeps the data and the other shows it. Most teams run the two side by side.

![A loop from left to right. An app gives off numbers. A collector gathers them every few seconds and stores them. From the store, one arrow goes up to a dashboard of charts that people look at. Another arrow goes down to an alert rule, which sends a message to the person on call when a line crosses its limit.](https://learn.benibix.com/diagrams/inf-monitoring-loop.svg)

---

Source: https://learn.benibix.com/term/infrastructure/prometheus
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
