Skip to content
BENIBIX Learn

Prometheus

Infrastructure📈 Monitoring & ObservabilityTelemetry and Dashboard Tools

Also known as Prometheus Monitoring, PromQL, Prometheus Server

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

Think of it like

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

Example

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

Why it matters

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

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 code

promql
rate(http_requests_total[5m])
Requests per second, worked out over the last five minutes.
Prometheus is the collector and the store in the middle. It also feeds the alert rules.

Common mistake

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

Key takeaways

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

Compare