What Is Prometheus? Definition, How It Works and Key Components

Ashish Dubey
Marketing-Leiter
veröffentlicht:
August 5, 2026
Aktualisiert:
November 17, 2026
What is Prometheus

‍

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.
How Prometheus works

A minimal setup is a scrape config and one query:

# prometheus.yml: scrape one app every 15 seconds
scrape_configs:
  - job_name: "my-app"
    scrape_interval: 15s
    static_configs:
      - targets: ["localhost:8080"]

# PromQL: requests per second over the last 5 minutes
rate(http_requests_total{job="my-app"}[5m])

Core components

ComponentWhat it does
Prometheus serverScrapes targets, stores time series and runs PromQL queries and alert rules
ExportersExpose metrics from things that cannot do it themselves, such as Linux hosts (node_exporter), databases and GPUs
Client librariesLet you add custom metrics to your own code in Go, Python, Java and other languages
PushgatewayHolds metrics from short-lived batch jobs that finish before they can be scraped
AlertmanagerGroups, silences and routes alerts to Slack, email or PagerDuty
Grafana (separate)Builds dashboards on top of Prometheus data

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.

Watching GPUs but not the LLM calls?

Prometheus covers your infrastructure. TrueFoundry's AI Gateway adds latency, token usage and cost per model and per team, so you see what every request actually did.

Book a demo →

Related: Kubernetes for data scientists and cloud-native.

1. Lorem ipsum dolor sit amet
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
2. Lorem ipsum dolor sit amet
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
3. Lorem ipsum dolor sit amet
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
Inhaltsverzeichniss

Steuern, implementieren und verfolgen Sie KI in Ihrer eigenen Infrastruktur

Buchen Sie eine 30-minütige Fahrt mit unserem KI-Experte

Eine Demo buchen
Grey wavy lines on white background, abstract wave pattern with multiple curved lines intersecting smoothly.

GenAI infra- einfach, schneller, günstiger

Top-Teams vertrauen uns bei der Skalierung von GenAI