Grafana vs Prometheus

Grafana: Dashboards and alerts across many data sources.; Prometheus: Metrics and alerting for services and infrastructure.

FieldGrafanaPrometheus
PricingOpen sourceOpen source
Open sourceYesYes
Self-hostableYesYes
EcosystemLanguage-agnosticLanguage-agnostic
LicenseAGPL-3.0-onlyApache-2.0
CategoryObservabilityObservability

Grafana

An open-source platform for dashboards and alerting over metrics, logs and traces from many data sources.

Choose Grafana if

Dashboards and alerts across many data sources.

Why it’s here

Grafana brings metrics, logs and traces into dashboards and an interactive exploration interface. A data source tells Grafana where to query, so a dashboard can reference an existing Prometheus server, Loki deployment or SQL database. The telemetry stays in the source systems. Grafana fundamentals Data sources

Pick it when

  • Your incident workflow starts with metrics and moves to logs or traces. Add the relevant sources, use panels for the views the team returns to, and use Explore to investigate a query outside the dashboard. Grafana's dashboard and exploration tools operate on the sources you configure. Grafana fundamentals
  • You want one interface for notifications across supported data sources. Grafana-managed alert rules can query multiple sources and evaluate expressions. Notification policies route alerts to contact points such as email or Slack. Grafana Alerting
  • You deploy the same dashboards to multiple environments. Grafana can provision data sources and dashboards from files, so deployments can read their definitions from configuration maintained alongside the service. Provisioning

Skip it when

  • Your team needs a service that receives and stores telemetry. Grafana queries backends through data sources. Plan where metrics, logs and traces will live before setting up the panels that display them. Data sources
  • Your deployment needs multiple Grafana replicas but has no shared database. Grafana's high-availability guide calls for a shared MySQL or PostgreSQL database to store application state across replicas. High availability

Current state

Grafana 13.3.2 was published on 2026-11-24. Grafana Open Source uses the GNU Affero General Public License version 3. Release Repository licence

Setup

In Docker, run docker run -d -p 3000:3000 --name=grafana grafana/grafana and open port 3000 in a browser. For a first panel, select the built-in TestData source or connect a backend. Docker installation TestData Data sources

Watch out for

Set up a persistent volume if you want users, dashboards and other settings to survive container replacement. The default SQLite database is stored inside the container unless storage is mounted. Grafana stopped updating the grafana/grafana-oss Docker Hub repository at 12.4.0 and directs users to grafana/grafana. Docker installation

Grafana on GitHub

Prometheus

A metrics monitoring system and time-series database with a pull model, PromQL and alerting.

Choose Prometheus if

Metrics and alerting for services and infrastructure.

Why it’s here

Prometheus periodically scrapes metrics endpoints, stores samples as labelled time series and queries them with PromQL. It suits monitoring where the useful questions concern aggregate behaviour over time, such as how request rate or error rate changed after a deployment. Alerting rules can send alerts to Alertmanager for notification handling. Prometheus overview Alertmanager overview

Pick it when

  • Your services and exporters expose metrics that a server can scrape. Start with a static target list or configure service discovery as targets change. A scrape configuration specifies where to collect metrics for a job and can override the global scrape interval. Scrape configuration
  • You need to ask the same question across instances or services. Labels identify the series and PromQL expressions can select and aggregate them, such as calculating a request rate and grouping the result by job. The getting-started guide demonstrates querying scraped metrics before adding more targets. Getting started
  • You want a defined notification policy for related alerts. Alertmanager groups alerts and can inhibit notifications for downstream symptoms when a higher-level alert is already firing. Alertmanager overview

Skip it when

  • Your application needs a complete count of individual events for billing. Prometheus's introduction distinguishes operational monitoring from use cases that need complete per-request data. Prometheus overview
  • You need clustered storage out of the box. Prometheus's local time-series database runs on a single node. The storage documentation describes remote read and write integrations for deployments that need external storage. Storage

Current state

Prometheus 3.16.0 was published on 2026-11-05. Prometheus is licensed Apache 2.0. Release Repository licence

Setup

Download and extract the matching release archive, then run ./prometheus --config.file=prometheus.yml from the extracted directory. The example configuration scrapes Prometheus itself. Check its metrics on port 9090 and open the query interface to test an expression before adding other targets. Getting started

Watch out for

Each unique combination of label values creates a time series. Avoid putting user IDs or other unbounded values in labels. Local retention defaults to 15 days if neither a time nor a size limit is set. Metric and label naming Storage retention

Prometheus on GitHub