What Is Prometheus? Definition, How It Works and Key Components
.webp)
Prometheus is an open-source monitoring and alerting tool. It collects numeric metrics from your applications and infrastructure, stores them as time series, and lets you query them with its own language, PromQL. It is the default way to monitor Kubernetes and other cloud-native systems.
It was built at SoundCloud in 2012 and became the second project, after Kubernetes, to graduate from the Cloud Native Computing Foundation. Prometheus 3.0 (November 2024) added a new UI and native OpenTelemetry (OTLP) ingestion.
How does Prometheus work?
Prometheus uses a pull model. Instead of waiting for apps to send data, the server visits each target over HTTP on a schedule, usually every 15 seconds, and reads whatever is on its /metrics page. This is called scraping.
- Discovery: in Kubernetes, Prometheus asks the API for pods and services, so new targets are picked up automatically.
- Storage: each sample is saved with a timestamp and labels in a local time series database.
- Querying: PromQL turns raw samples into rates, averages and percentiles.
- Alerting: rules fire alerts, and Alertmanager groups them and sends them to Slack, email or PagerDuty.
.webp)
A minimal setup is a scrape config and one query:
Core components
Metric types
- Counter: a value that only goes up, such as requests served.
- Gauge: a value that goes up and down, such as memory in use.
- Histogram: counts observations in buckets, so you can work out latency percentiles.
- Summary: similar to a histogram, but calculates percentiles on the client side.
When to use Prometheus and when not to
Prometheus works well for Kubernetes and microservices, for any numeric metric, and for alerting on what is happening right now. It is a poor fit for logs, traces and per-event data. Its local storage is also meant for short-term data, so teams add Thanos, Mimir or VictoriaMetrics for long-term storage. Dashboards usually come from Grafana.
Prometheus for AI and GPU workloads
Model servers such as vLLM expose Prometheus metrics, and NVIDIA's DCGM exporter reports GPU utilization, memory and temperature. That makes Prometheus a good fit for watching GPUs on Kubernetes, including shared setups with fractional GPUs.
What infrastructure metrics cannot tell you is what happened inside a request: which model was called, how many tokens it used, what it cost. TrueFoundry's AI Gateway adds that LLM-level observability, with latency, token usage and cost per model and per team, next to the infrastructure view you already have.
Related: Kubernetes for data scientists and cloud-native.

Steuern, implementieren und verfolgen Sie KI in Ihrer eigenen Infrastruktur

GenAI infra- einfach, schneller, günstiger
Top-Teams vertrauen uns bei der Skalierung von GenAI
















