Continuous profiling platform: debug performance issues down to a single line of code
open sourceAGPL-3.0-onlyself-hostablefree
Grafana Pyroscope is an open source continuous profiling database that collects CPU, memory and I/O profiles from running applications all the time, so you can find the code paths that burn resources or caused an incident, down to the line number. Profiles arrive from language SDKs (Go, Java, Python, Ruby, Node.js, .NET, Rust), from Grafana Alloy (pprof scraping and eBPF, with no code changes) or over OTLP from OpenTelemetry sources; Pyroscope 2.0 writes them straight to object storage and runs as a single binary or as horizontally scalable, multi-tenant microservices. You explore them as flame graphs in Grafana's queryless Profiles Drilldown app, next to metrics, logs and traces. Grafana Labs acquired Pyroscope in March 2023 and merged it with its own Phlare project under this name; it is AGPL-3.0 and also runs as the hosted Grafana Cloud Profiles.
Ways to install
On Kubernetes
Problems it solves
- CPU usage on our servers keeps climbing and I can't tell which functions are responsible
- find the exact line of code behind a memory leak that only shows up in production
- see what our service was doing during last night's latency spike, after the fact
- profile production services all the time without restarting them under a profiler
- compare CPU flame graphs between two releases to find a performance regression
- cut our cloud bill by finding the most CPU-hungry code paths across all services
- jump from a slow trace span to the profile of exactly that request
- profile Go, Java, Python, Ruby, Node.js, .NET and Rust services in one place
- collect profiles from every process on a Kubernetes node with eBPF and no code changes
- store months of profiling data cheaply in S3 or Google Cloud Storage
- run a profiling backend that several teams share with separate tenants
- upload a pprof file from a CI run and query it alongside production profiles
- export a merged production profile for Go profile-guided optimization (PGO)
- see why our Java service runs out of memory and gets OOM-killed
Features
- continuous CPU, memory and I/O profiling
- push SDKs for Go, Java, Python, Ruby, Node.js, .NET and Rust
- eBPF and pprof pull collection through Grafana Alloy, with no code changes
- OTLP ingestion from OpenTelemetry-compatible sources
- v2 architecture that writes profiles straight to object storage, with no ingesters or local disks
- object storage: S3, Google Cloud Storage, Azure Blob Storage, OpenStack Swift and S3-compatible stores
- single binary or horizontally scalable microservices, with high availability and multi-tenancy
- Grafana Profiles Drilldown app for queryless flame graph exploration
- profiles linked to traces, metrics and logs in Grafana
- profile diffs and heatmaps
View 3 more
- HTTP and Connect APIs for ingesting and querying profiles
- profilecli for uploading pprof files, querying profiles, exporting for Go PGO and managing recording rules
- official Helm chart
Ways to run it
Grafana Pyroscope
You arrange
- object storage for profiles (S3, GCS, Azure Blob Storage or Swift)
- Grafana for exploring profiles
- Grafana Alloy or language SDKs to collect profiles
- servers or a Kubernetes cluster, and upgrades
Grafana Cloud Profiles
free up to 50 GB ingested a month (14 days' retention); Pro $19/month platform fee, then from $0.05/GB processed, $0.40/GB written and $0.10/GB retained; Enterprise custom34
Only in this edition
- Pyroscope hosted and run by Grafana Labs as part of Grafana Cloud
- Profiles Drilldown pre-installed
Capabilities
| Has an API | plan not known |
|---|---|
| Has a command line tool | plan not known |
| Has official SDKs | plan not known |
Alternatives
The same job
These do what Grafana Pyroscope does.
