ObservabilityIntermediate

Continuous Profiling in Production: Pyroscope vs Parca

DeveloperHat Team
16 min read

TL;DR

Pyroscope 2.4 and Parca 0.30 both promise always-on profiling. Compare ingestion, storage, overhead, and Grafana integration — and when pprof alone is enough.

Metrics tell you a service is slow. Traces tell you which request is slow. Neither tells you which function is eating the CPU. That is the gap continuous profiling fills: every process samples its own stack a few times a second, all the time, and the samples accumulate into flame graphs you can query by service, time range, and label — including last Tuesday, when the incident actually happened and nobody was watching.

The short version: if your observability home is already Grafana, Pyroscope is the path of least resistance — native data source, object-storage backend, SDKs for the languages you already run. If you want zero-instrumentation profiling across a whole Kubernetes cluster with no per-service code changes, Parca's eBPF agent is the more elegant fit, at the cost of running and storing everything yourself on local disk. And if you have one Go service and a known problem right now, neither is the right first move — plain pprof is. The rest of this guide is the evidence behind those three sentences, and the cases where each of them is wrong.

From running code to a flame graph you can rewind SDK push per-service, precise Alloy eBPF pull no code changes OTLP profiles standard, public alpha Pyroscope 2.4.4 · Parca v0.30.0 object storage vs local disk Flame graph + diff Grafana Drilldown · Parca UI Sampling a few times a second, all the time — history is the feature.

What continuous profiling actually buys you

Profiling used to be a debugging session: attach to a process, capture thirty seconds, stare at a flame graph, detach. Continuous profiling turns that session into a signal with history. Because profiles are collected all the time and tagged like metrics — service, version, region, instance — you can ask questions a one-off capture cannot answer: what changed in the flame graph between yesterday's deploy and today's, which function grew after the library upgrade, whether the memory growth is a leak or just traffic. The diff between two time ranges is usually more valuable than any single flame graph.

That only works if the overhead is low enough to leave on. Both tools in this comparison are built around sampling profilers — they interrupt the process periodically and record the stack, rather than instrumenting every function call — which is why always-on is a realistic default instead of a performance tax. The overhead is not zero, and it is not the same for every profile type: CPU sampling is the cheap one, while allocation and lock-contention profiling cost more on services with high allocation rates. Budget for that difference, and measure overhead on your own workload before rolling out to a whole fleet — neither vendor's numbers replace a measurement on your code.

Two more facts shape the decision before any feature comparison. First, profiling data is only as useful as its labels: a flame graph without a version label cannot tell you whether the deploy caused the regression. Second, profiles are the fourth signal now, not a sidecar to tracing — OpenTelemetry's Profiles signal reached public alpha in March 2026, and both tools in this guide can already ingest it, so the choice you make today should not lock you out of the standard that is forming around it. Our OpenTelemetry in production guide covers where that signal stands and why you should not build critical production workflows on it yet.

Option 1: Grafana Pyroscope — the Grafana-native backend

Pyroscope is Grafana Labs' continuous profiling database, and the current version is 2.4.4, released 20 November 2026. The version number matters here because 2.0, released 20 April 2026, was a ground-up rearchitecture: the Cortex-derived design of 1.x is gone, replaced by a system that writes each profile exactly once to object storage and serves queries through a stateless read path. If you evaluated Pyroscope before April 2026, you evaluated a different architecture — the storage and scaling story in this section is the 2.x one. The 2.4 release notes and the 2.0 launch post are the primary sources for what changed.

Ingestion follows three paths, and the one you pick decides how much code you touch. SDK push is the most precise: add the SDK to the application and it sends CPU, allocation, goroutine, and lock profiles on a schedule. The Go SDK is the reference example, and it is three lines of configuration:

pyroscope.Start(pyroscope.Config{
  ApplicationName: "checkout-api",
  ServerAddress:   "http://pyroscope:4040",
  Logger:          pyroscope.StandardLogger,
  ProfileTypes: []pyroscope.ProfileType{
    pyroscope.ProfileCPU,
    pyroscope.ProfileAllocObjects,
    pyroscope.ProfileAllocSpace,
  },
})

SDKs exist for Go, Java, Python, Ruby, .NET, Node.js, and Rust, with Python and Rust gaining memory profiling and .NET gaining Windows support during the 2.4 cycle. The second path is Grafana Alloy pull mode: Alloy scrapes pprof endpoints or runs an eBPF profiler that needs no code changes at all — natively compiled languages such as C, C++, Go, Rust, and Zig, plus Java, .NET, Python, Ruby, PHP, Node.js, and Perl. The third path is native OTLP profiles ingest, added in 2.0, which lets OpenTelemetry-instrumented services send profiles through the same pipeline as traces and metrics. If you already run a Collector tier, our observability pipeline architecture guide covers where that ingestion layer sits.

Storage is the sharpest edge of the 2.x design. Profiles land in object storage — S3 and S3-compatible stores, Google Cloud Storage, Azure Blob Storage, or Swift — which is the single source of truth for profile data. That is the right trade for a team that already operates object storage: retention becomes a bucket lifecycle policy, and the database itself holds no irreplaceable state. It is the wrong trade for a team that wants a single binary with a local disk and nothing else — distributed Pyroscope 2.x requires object storage, so budget the bucket, the IAM, and the egress before you budget the server. The single binary remains the fastest way to try it, but do not mistake the trial deployment for the production one.

The reason to pick Pyroscope is the Grafana integration, and it is genuinely native rather than bolted on. Pyroscope is a first-class Grafana data source, Profiles Drilldown 3.0 (October 2026) adds exemplars and a call-tree view alongside the flame graph, and span profiles link individual trace spans to their flame-graph frames — so the slow span in Tempo and the hot function in Pyroscope are one click apart instead of two tools. The managed escape hatch is Grafana Cloud Profiles, which runs the same 2.x architecture as a service. The costs are the ones that come with the Grafana ecosystem: the server is AGPL-3.0 licensed, which matters if you redistribute it, and Grafana Labs publishes no headline overhead figure for the SDKs, so the "low overhead" claim is one you verify on your own services rather than one you quote in a design doc.

Option 2: Parca — the eBPF-first CNCF project

Parca is the other serious open-source answer, and it starts from the opposite end: instead of instrumenting applications, profile the whole machine. The current server release is v0.30.0, released 6 November 2026, and the agent is at v0.52.0. Parca is a CNCF Sandbox project, originally built by Polar Signals, and its two components are the server — storage, query API, and web UI — and parca-agent, an eBPF profiler deployed as a DaemonSet that auto-discovers every container on a node and starts profiling it with no code change, no restart, and no redeploy.

The agent is the product. It samples stack traces in the kernel with eBPF, so it profiles compiled languages (C, C++, Rust, Go) and, with runtime-specific unwinding, Ruby, Node.js, Python, Java and the JVM, .NET, Perl, and PHP — the project's own FAQ lists all of them, and the list keeps growing. The requirements are a Linux kernel 5.3 or newer with BTF, and root privileges for the agent, which is the security conversation you have to have before deploying it: the code is open source and the images are reproducibly built, but a privileged DaemonSet on every node deserves a review, not a shrug. On overhead, Parca's FAQ is the only vendor-published figure in this comparison and it is carefully worded — the agent "has been observed" to cost less than 1% CPU and less than 200 MB of memory, depending on how many targets are being profiled, with more elaborate and reproducible reports still to come. Treat that as a credible direction, not a guarantee, and measure it on your own nodes.

Ingestion is pull-first and Prometheus-shaped. The server scrapes pprof endpoints on a schedule, using a config file that will look familiar to anyone who has written a Prometheus config:

scrape_configs:
  - job_name: "checkout-api"
    scrape_interval: 10s
    static_configs:
      - targets: ["checkout-api:6060"]

Targets must expose pprof endpoints, and Kubernetes service discovery with relabelling is supported for larger fleets. The agent pushes over gRPC instead, and a newer OTLP-forwarder mode scrapes pprof endpoints, converts them with OpenTelemetry's translator, and exports them upstream without starting a local store — useful if Parca is a stepping stone to a different backend rather than the destination. For the Kubernetes side of that deployment, our Kubernetes monitoring and observability guide covers where a DaemonSet like this lives in the cluster.

Storage is where Parca's independence shows. The server uses a purpose-built storage engine on local disk — raw-resolution profile data, a write-ahead log, and 512 MB of active memory by default — and debug-info blobs live in a configurable object store with filesystem and in-memory implementations. There is no S3 backend for profile data in the open-source server. That is a feature if you want the whole stack self-contained with no cloud dependency, and a limit if you want retention measured in months across a large fleet: you size the disk, you run the compaction, and you own the backup story. The licence is Apache-2.0, the most permissive of the three options in this guide. The UI is Parca's own web interface rather than a Grafana app — there is a Parca data source plugin for Grafana, but profiles inside Grafana are an integration, not the home turf the way they are for Pyroscope.

Five layers, one profiling stack Instrumentation — SDK push · Alloy eBPF · OTLP profiles Ingestion — scrape pprof · gRPC push · OTLP forwarder Storage — object storage (Pyroscope) · local disk (Parca) Query — label selectors · time ranges · profile diffs Surface — Grafana Drilldown 3.0 · Parca web UI Swap one layer without rebuilding the rest — that is the point of the split. Retention lives in the storage layer: bucket policy for Pyroscope, disk you size for Parca.

Option 3: Just add pprof — ad-hoc profiling done honestly

Before either backend earns its operational cost, there is a third option that is already installed: the profiler your runtime ships with. For Go, that is net/http/pprof — one blank import exposes the endpoints, and the standard tool does the rest:

# Capture a 30-second CPU profile from a running Go service
go tool pprof http://localhost:6060/debug/pprof/profile?seconds=30

# Open the interactive flame-graph UI from a saved profile
go tool pprof -http=:8080 cpu.prof

The same shape exists everywhere else: Java has async-profiler and JFR, Python has py-spy, Rust has samply. The workflow is identical in every language: reproduce the problem, capture a profile, read the flame graph, fix the function, capture again to prove it worked.

Ad-hoc profiling is enough more often than the continuous-profiling vendors admit. It is enough when you have one service rather than a fleet, when the problem is reproducible on demand rather than intermittent, when you already know roughly when the slowness happens, and when the profile you need is a snapshot rather than a trend. It is also enough as a first step before committing to a backend: a week of pprof captures tells you whether profiling actually finds your bottlenecks, which is the question the backend cannot answer for you.

Its limits are exactly the limits of having no history. You cannot diff last Tuesday against today, because last Tuesday's profile was never captured. You cannot see the regression the deploy introduced at 2 AM, because nobody was awake to capture it. You cannot compare fifty instances to find the one hot replica. And the endpoint itself is a small security surface — net/http/pprof exposes goroutine dumps and heap profiles, so it belongs behind authentication or on an internal-only port, never on a public listener. When any of those limits starts costing you incidents, that is the moment to graduate to one of the two backends above, not before.

The comparison

Pyroscope 2.4.4Parca v0.30.0Ad-hoc pprof
Ingestion modelSDK push, Alloy pull (eBPF), OTLP profileseBPF agent push (gRPC), pprof scrape, OTLP forwarderManual capture against a live endpoint
Code changesSDK per service, or none with Alloy eBPFNone — agent profiles the whole nodeOne import to expose endpoints
StorageObject storage (S3, GCS, Azure, Swift)Purpose-built engine on local diskNone — files on your laptop
RetentionBucket lifecycle policyDisk you size yourselfUntil you delete the file
Overhead (vendor claim)No headline figure published — measure itObserved under 1% CPU, under 200 MB (agent)Zero when not capturing
Grafana integrationNative data source, Profiles Drilldown 3.0, span profilesOwn web UI; Parca data source plugin for GrafanaNone
LanguagesGo, Java, Python, Ruby, .NET, Node.js, Rust (+ eBPF for compiled)C, C++, Rust, Go, Ruby, Node.js, Python, Java, .NET, Perl, PHPWhatever your runtime ships
LicenceAGPL-3.0Apache-2.0Your runtime's licence
Best forTeams already on Grafana, multi-language fleetsKubernetes clusters, zero-instrumentation profilingOne service, one known problem

Which profiling setup for your fleet? Start from the fleet you have, not from the feature list. What does your fleet look like? one service · Grafana home · whole cluster One service, known problem pprof — capture, fix, prove it Grafana is home Pyroscope — native data source Zero-touch whole cluster Parca — eBPF agent Neither describes you? start with pprof anyway A backend nobody queries is operational cost with no return.

Recommendation

The default choice follows the observability stack you already run, not the feature table. If Grafana is already where your team looks at metrics, logs, and traces, choose Pyroscope: the native data source and span-profile linking are worth more than any single feature difference, the object-storage backend fits the way you already retain data, and Grafana Cloud Profiles exists if you later decide you do not want to run it. If your estate is Kubernetes and the priority is profiling everything with no per-service work, choose Parca: deploy the agent as a DaemonSet, point it at one server, and every container in the cluster is profiled by the end of the day — and the Apache-2.0 licence keeps your options open. If neither sentence describes you — one service, a known problem, a deadline — do not install anything: capture a pprof profile, fix the function, and revisit the decision when the second service arrives.

Whichever backend you pick, roll it out the same way: one service first, a week of baseline profiles before you trust any diff, labels for service and version from day one, and a retention policy written down before the disk or the bucket fills up. The backend is the easy part; the discipline of labelling and retention is what decides whether profiling is still useful six months later.

Architecture Decision

>

Decision: Run continuous profiling on the production fleet with Pyroscope 2.4.4 backed by object storage, ingested through Grafana Alloy pull mode where possible and SDK push where a service needs allocation or lock profiles, with profiles queryable from Grafana next to metrics, logs, and traces.

>

Context: A platform team runs a multi-language microservice fleet on Kubernetes with Grafana as its observability home. Latency regressions keep arriving as "the service is slow" with no function-level evidence, and the last two were only diagnosed by attaching a profiler during the incident — after the interesting behaviour had already passed.

>

Options considered: (a) Pyroscope 2.4.4 with Grafana Alloy ingestion and object storage. (b) Parca v0.30.0 with the eBPF agent and local-disk storage. (c) Ad-hoc pprof captures against live services when an incident is already in progress.

>

Why this one: The team already lives in Grafana, so Pyroscope's native data source and span-profile linking put the flame graph one click from the slow span instead of in a second tool. Object storage matches the retention model the team already operates for logs and traces, and Alloy pull mode covers most services without code changes, with SDK push reserved for the services where allocation and lock profiles matter. Parca's agent is the more elegant profiler, but it would add a second UI and a local-disk retention story the team does not want to operate.

>

What it costs you: Object storage, its IAM, and its egress need budgeting before the server does — the bucket is the retention story, not an afterthought. Grafana publishes no headline overhead figure, so the team must measure SDK overhead on its own services before fleet-wide rollout. The server is AGPL-3.0, which needs a licence review if the team ever redistributes it. And the 2.x architecture is new — anyone who ran Pyroscope 1.x is operating a different system and should treat the upgrade as a migration.

>

When to reverse it: When the team leaves Grafana for a different observability home — the integration premium disappears with it. When profiling needs to cover hosts outside Grafana's reach with zero instrumentation, where Parca's agent is the better fit. When the fleet shrinks to a handful of services and ad-hoc pprof captures answer every question — a backend nobody queries is operational cost with no return.

When not to use

Do not adopt continuous profiling to fix a problem you have not yet seen. If no service has ever needed a flame graph, the backend, the retention, and the rollout are cost with no evidence of return — capture a pprof profile the first time a real bottleneck appears and let that decide. Do not profile everything at maximum fidelity on day one: allocation and lock profiles cost more than CPU sampling, and enabling every profile type on every service is how a low-overhead tool becomes a noticeable tax. Start with CPU profiles, add allocation profiles where memory is the question, and keep lock profiles for the services with known contention.

Do not treat the flame graph as the whole investigation. A hot function is a suspect, not a verdict — it may be doing exactly the work the request requires, and the fix may be caching, batching, or a different algorithm rather than a faster function. And do not build critical production workflows on OTLP Profiles yet: the signal is in public alpha since March 2026, the wire format and conventions can still change, and the OpenTelemetry project itself advises against relying on it for critical workloads. Use the native ingestion paths for anything you depend on, and treat OTLP profiles as the migration path, not the foundation.

How long this guidance stays current

Versions and dates in this guide are as of November 2026: Pyroscope 2.4.4 (20 November 2026), with the 2.0 rearchitecture released 20 April 2026; Parca server v0.30.0 (6 November 2026) with parca-agent v0.52.0; Profiles Drilldown 3.0 (October 2026); OpenTelemetry Profiles in public alpha since March 2026. The parts that age fastest are the version numbers and the language-support lists — both projects add runtimes and profile types every few releases, so check the current docs before standardising on a language that is newly supported. The parts that do not age are the trade-offs: instrumentation versus zero-touch collection, object storage versus local disk, and native Grafana integration versus a standalone UI. Re-check the release notes for both projects and the OTLP Profiles status page before you commit a fleet to either backend.

Why This Matters

Understanding the business and technical context helps you make informed decisions rather than blindly following patterns.

Trade-offs to Consider

Every architectural decision involves trade-offs. Consider your specific requirements, team expertise, and scale when evaluating options.

When NOT to Use This

Knowing when a solution doesn't apply is as valuable as knowing when it does. Consider alternatives for your specific situation.

Decision Framework

Use this framework to evaluate whether this approach is right for your use case based on your specific constraints and requirements.

Share this articleShare on XShare on LinkedIn

Keep the decision frameworks coming

One practical architecture guide a week — patterns, trade-offs, and when not to use them. No spam, unsubscribe anytime.