Skip to content
FossShelf
Home / Categories / For Security Teams

Grafana

Open source dashboards for metrics, logs, and traces

Replaces Datadog, New Relic, Dynatrace

77.95K starsAGPL-3.0reviewed 22 Jan 2025last commit 16 Nov 2026
Screenshot of Grafana

Who it's for

SRE and on-call teams monitoring production infrastructure

Grafana centralizes the metrics, logs, and traces that on-call engineers need during incidents. Connecting Prometheus for system metrics and Loki for application logs gives a single interface to identify and investigate problems without switching tools mid-incident.

If your team has no existing Prometheus or Loki setup and needs a fully managed, zero-configuration monitoring service, Datadog or New Relic offer faster initial onboarding at higher ongoing cost.

Platform engineering teams building internal observability stacks

Teams standardizing observability across multiple services use Grafana as the shared dashboard layer. Template variables let one dashboard cover all services; alerting rules deploy via Terraform or GitOps workflows. The open plugin architecture supports custom integrations for internal data sources.

Teams without dedicated infrastructure ownership who cannot commit to running Prometheus, Loki, and Grafana may find the operational overhead outweighs the cost savings versus a managed SaaS alternative.

Developers adding dashboards to self-hosted applications

Developers running their own servers for applications, databases, or services use Grafana to build dashboards for system metrics and application-level KPIs. With a Prometheus exporter and a single Grafana instance, you get production-grade dashboards for any process that exposes metrics.

If you need application performance monitoring with automatic code-level tracing, a dedicated APM tool with language agents, such as the Elastic APM stack or OpenTelemetry with a backend, may provide faster time-to-insight.

Data teams visualizing business and operational metrics

Grafana connects to relational databases (Postgres, MySQL) and analytics systems alongside infrastructure data sources, making it usable for business dashboards alongside infrastructure monitoring. Mixed-source panels let you overlay application load with business conversion data in the same view.

For pure business intelligence with non-technical stakeholders who need governed reports, scheduled exports, or embedded analytics in customer-facing products, a purpose-built BI tool like Metabase or Apache Superset is a better fit.

The problem

Production infrastructure generates three categories of telemetry: metrics, logs, and traces. The problem is that each lives in a different system with a different query language. Metrics land in Prometheus or InfluxDB, logs in Elasticsearch or Loki, traces in Jaeger or Tempo. When something breaks at 3am, the on-call engineer tabs between four dashboards in four different tools, losing context at each jump. Paid monitoring services address this fragmentation by bundling collection, storage, and visualization into one managed product, but the cost scales with host count and data volume. A team running 50 servers can easily spend several thousand dollars a month on a commercial monitoring platform. For many teams, especially those already running their own infrastructure, that per-host pricing is the core pain: they are paying for a dashboard layer on top of data they already own.

How it works

Unified dashboards across metrics, logs, and traces

Query Prometheus metrics, Loki logs, and Tempo or Jaeger traces from the same dashboard panel. Grafana preserves label context when you pivot between signal types, so clicking a spike on a metric panel can surface the correlated log stream without rebuilding the query. Over 100 official data source plugins are included.

Alerting with multi-channel notifications

Define alert rules visually against any connected data source. When thresholds fire, Grafana routes notifications to Slack, PagerDuty, VictorOps, OpsGenie, or any webhook target. Alert rules are stored as code and can be version-controlled alongside your infrastructure configuration.

Dynamic dashboards with template variables

Parameterize dashboards with dropdown variables that filter all panels simultaneously. A single dashboard can cover all your services when a service variable is populated from Prometheus labels. Reusable dashboard templates mean you build once and apply across every environment.

Mixed data sources in a single panel

Query different data sources in the same graph on a per-query basis. You can overlay a Prometheus metric with a Postgres query result in one panel, which is useful for correlating system load with business data. This works for custom data source plugins as well.

Explore mode for ad-hoc investigation

Switch to Explore mode to run ad-hoc queries against any connected data source without modifying saved dashboards. Split-view lets you compare two queries side-by-side or examine the same data across two time windows. Logs can be streamed live for real-time tail-like behavior.

Features

  • Unified dashboards across metrics, logs, and traces
  • Alerting with multi-channel notifications
  • Dynamic dashboards with template variables
  • Mixed data sources in a single panel
  • Explore mode for ad-hoc investigation

How to install

Self-hosting Grafana uses Docker with a single container and no external database required for a basic setup.

docker run -d -p 3000:3000 grafana/grafana

Recommended for this setup

Strengths

  • 76,000+ GitHub stars and active development since 2013: Grafana is one of the most starred observability projects on GitHub, with contributions from thousands of developers and backing from Grafana Labs. The repository receives daily commits and has over 14,000 forks, indicating a large ecosystem of plugins and derivative projects. Common integration problems are well-documented and solved across community forums and GitHub discussions.
  • No vendor lock-in on data storage: Unlike Datadog and New Relic, which require sending your telemetry to their cloud, Grafana works with data sources you already operate. Your metrics stay in your Prometheus instance, your logs in your Loki cluster, and Grafana is the display layer only. You can swap Grafana out without losing any data.
  • AGPL-3.0 with self-hosting from a single Docker command: The open source core is AGPL-3.0 licensed and free to run on your own hardware. Getting a basic Grafana instance running requires one Docker command and no external dependencies beyond a compatible data source. For teams with existing Prometheus or Loki setups, dashboard coverage can begin within minutes of first launch.
  • Over 100 official data source integrations: Official plugins connect Grafana to Prometheus, Loki, Elasticsearch, InfluxDB, Tempo, MySQL, Postgres, CloudWatch, Azure Monitor, Google Cloud Monitoring, and dozens more. The plugin architecture means community-built integrations can add support for any system with a queryable API.

Trade-offs

  • AGPL-3.0 requires source disclosure for network services: Grafana's AGPL-3.0 license requires that if you run a modified version as a network service, you must make your modifications available. For teams using the unmodified open source build internally, this is not a concern. For teams embedding Grafana into a commercial product they ship to customers, it requires either releasing those changes or purchasing a commercial license from Grafana Labs.
  • Grafana is a visualization layer, not a data collector: Grafana does not collect or store telemetry itself. You need separate infrastructure for the data layer: Prometheus for metrics, Loki for logs, Tempo for traces. A complete observability stack requires provisioning and maintaining these components alongside Grafana. For teams starting from scratch, the full setup involves moderate complexity.
  • 3,300+ open issues reflect a broad surface area: With over 3,300 open GitHub issues, the tracker reflects the breadth of integrations and configurations the community uses. Feature requests, edge-case bugs, and plugin compatibility issues accumulate. Most day-to-day observability use cases work well, but niche data source integrations or advanced alerting scenarios may require workarounds.

Tech stack

Languages
TypeScript, Go, PLpgSQL, CUE, JavaScript, Rich Text Format, HTML, MDX, Shell, CSS, Makefile, SCSS, Jsonnet, HCL, Dockerfile, Go Template, Python, Starlark, Mustache, Smarty, Ruby, PowerShell, Assembly
Frameworks
React
Databases
MySQL, PostgreSQL, Elasticsearch
Tooling
esbuild, Rollup, Webpack

FAQ

Is Grafana free to use?

The open source core of Grafana is AGPL-3.0 licensed and free to self-host. You can run it on your own server at no cost. Grafana Labs also offers a managed cloud tier (Grafana Cloud) with a free-forever plan for small deployments and paid plans for larger volumes of metrics, logs, and traces.

What data sources does Grafana support?

Grafana includes official plugins for over 100 data sources, including Prometheus, Loki, Elasticsearch, InfluxDB, Tempo, MySQL, Postgres, CloudWatch, Azure Monitor, Google Cloud Monitoring, and more. The plugin architecture allows community-built connectors for additional systems. Any system with a queryable API can be connected via a custom data source plugin.

How do I install Grafana?

The fastest path is Docker: running 'docker run -d -p 3000:3000 grafana/grafana' starts a Grafana instance accessible on port 3000. Official packages are also available for Ubuntu, Debian, RHEL, and Windows. For Kubernetes deployments, Grafana Labs maintains an official Helm chart. Full installation documentation is at grafana.com/docs.

What is the difference between Grafana and Grafana Cloud?

Grafana (the open source project) is the visualization and alerting layer you run on your own infrastructure. Grafana Cloud is the managed service offered by Grafana Labs: they handle hosting, scaling, and data storage for metrics, logs, and traces. The core dashboarding experience is the same. The difference is who manages the backend data infrastructure and who pays for the servers.

Does Grafana work with Prometheus?

Yes. Prometheus is one of Grafana's native and most widely used data sources. Grafana includes a built-in Prometheus data source plugin that supports PromQL queries, label filtering, and alerting rules. Most Grafana users pair it with Prometheus for metrics collection and Loki or Elasticsearch for log aggregation.

Similar tools

More in Security Teams