| Role in the stack | Grafana queries, visualizes and alerts on metrics, logs and traces stored in other systems, reading them through configured data sources. | Prometheus is a systems and service monitoring system. Its server scrapes metrics from configured targets at given intervals over HTTP, stores them and evaluates rule expressions. |
|---|
| Data storage | Grafana keeps telemetry in external backends: each data source connects to storage such as a Prometheus server, a Loki instance, a SQL database or a cloud monitoring service. | Prometheus includes a local on-disk time series database and can optionally integrate with remote storage systems. Retention defaults to 15 days unless a time or size limit is set. |
|---|
| Data types | Grafana works with metrics, logs, traces and profiles, and the Mixed data source lets one panel combine backends, such as Prometheus metrics alongside Loki logs. | Prometheus records purely numeric time series identified by metric name and labels. The project says it is not a good choice where 100% accuracy is needed, such as per-request billing. |
|---|
| Query language | Grafana uses the query language of each data source. Its Prometheus data source is preinstalled and accepts PromQL, and Metrics Drilldown lets users explore metrics without writing queries. | Prometheus uses PromQL for graphs and alert rules, and exposes a stable HTTP API under /api/v1 so that Grafana or other API consumers can visualize the data. |
|---|
| Alert handling | Grafana Alerting lets you define rules visually and sends notifications through PagerDuty, SMS, email, VictorOps, OpsGenie or Slack. | The Prometheus server runs rules over stored data to record new series or generate alerts, and a separate Alertmanager component handles those alerts. |
|---|
| Licence and governance | Grafana is developed by Grafana Labs and distributed under AGPL-3.0-only, with Apache-2.0 exceptions. The commercial Grafana Enterprise and Grafana Cloud editions share the same core. | Prometheus components are available under the Apache 2 License. The project joined the Cloud Native Computing Foundation in 2016 and is maintained independently of any company. |
|---|
| Scaling and durability | Grafana Labs offers Grafana Mimir for scalable long-term Prometheus storage, and the Prometheus data source also works with Thanos and other projects that implement the Prometheus querying API. | Each Prometheus server is standalone, with no reliance on distributed storage. Local storage is not clustered or replicated, so scale and durability come from federation or remote storage. |
|---|
| Hosting and cost | Grafana OSS is free and self-managed. Grafana Cloud is a managed option with pre-configured Prometheus, Loki and Tempo data sources and a free tier limited to 10k active metric series per month. | Prometheus is free open source software that you install and operate yourself, from precompiled binaries, Docker images or source code. |
|---|