selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

pyroscope logo

Self-host pyroscope

v2.4.3

Continuous profiling platform for CPU and memory hot spots

ReleaseOpen SourceAGPL-3.0
docker run -it -p 4040:4040 grafana/pyroscope
Updated6 days ago
LanguageGo
Setup difficultyEasy
Stars
11 715
Ports
4040 (Main HTTP server (API, UI, ingest and queries)), 4042 (Admin HTTP server: metrics, pprof, admin)
Docker
grafana/pyroscope

What is pyroscope?

A continuous profiling platform from Grafana Labs, Pyroscope keeps sampling profiles of your services over time so developers can find hot code paths and cut CPU, memory and I/O consumption - before an incident, or while chasing one. Ingest works three ways: language SDKs for Go, Java, .NET, Python, Ruby, Node.js and Rust push profiles, Grafana Alloy scrapes or receives them (including eBPF auto-instrumentation of processes), and OpenTelemetry sources such as the eBPF profiler send OTLP. Since the 2.0 release the redesigned v2 architecture is the default: profile segments go straight to object storage and background compaction workers merge them, so there are no ingesters holding local disks; v1 installs can opt in and migrate without losing data. Analysis is mostly done in Grafana - Profiles Drilldown gives a queryless flame-graph experience and the Pyroscope data source feeds dashboards - though a profile CLI and the older Pyroscope UI exist too. Operating side: monolithic single-process mode or scaled-out microservices mode, multi-tenancy with tenant IDs, shuffle sharding, per-tenant limits, and write-path sampling to trim stored volume. Self-hosting is one binary, a container image (port 4040), a Homebrew formula, Linux packages or a Helm chart; retention defaults to 31 days and anonymous usage statistics are on until disabled.

Should you self-host pyroscope?

pyroscope scores 73/100 on selfhost.directory (how scoring works) and ranks #3 of 9 in Application Performance Monitoring. It has 11 715 GitHub stars, +25 in the last 30 days.

It shipped 22 stable releases in the past year. The latest, v2.3.5, came out on 3 November 2026. New versions land roughly every 6 days.

Setup is easy: most people get it running in one sitting. An official Docker image is available. It is AGPL-3.0-licensed and written mostly in Go.

Its closest alternative on selfhost.directory is sentry (80/100, 45 737 stars). It scores higher overall, so compare the two before you pick. See pyroscope vs sentry side by side.

Features

  • Continuous profiling
  • Durable long-term storagev2 writes profiles directly to object storage.
  • Flame graph visualization
  • High Availability
  • Horizontal Scaling
  • Language SDK instrumentation
  • Line-level analysis
  • Multi-tenancy
  • Pprof endpoint scraping
  • Profiling CLI
  • Self-profiling
  • Single Binary Deployment
  • Trace-to-profile correlation
  • Write-path sampling

pyroscope README

Pyroscope

How to install pyroscope

Install pyroscope with Docker

docker run -it -p 4040:4040 grafana/pyroscope

The get-started guide pulls grafana/pyroscope:latest and runs it on a user-defined bridge network so a Grafana container can join it.

How to configure pyroscope

  • -config.filePath to the YAML configuration file; command-line flags take precedence over YAML values.

    values: file path

  • -targetallModules/components to load; the alias 'all' enables single-binary (monolithic) mode.

    values: all, or a comma-separated list of components

  • -server.http-listen-port4040HTTP server listen port.

    values: int

  • -admin-server.http-listen-port4042Port for the admin HTTP server (metrics, pprof, admin).

    values: int

  • -memberlist.bind-port7946Port listened on for gossip messages between instances.

    values: int

pyroscope releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

More in Application Performance Monitoring

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…