Compare two Grafana Pyroscope profiles by diffing their flamegraphs via the API

domain: grafana.com · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Identify the two time ranges and label selectors (service, profile type) you want to compare
  2. Call the Pyroscope querier's Diff RPC endpoint with `left` and `right` profile selectors, each specifying `start`/`end` and a `labelSelector`
  3. Set the desired output format (e.g. flamegraph) in the request
  4. Send the request and parse the returned diff data, which highlights regressions and improvements between the two ranges
  5. Cross-check results against the Pyroscope UI's built-in comparison/diff view for validation
  6. Automate recurring diffs (e.g. before/after a deploy) by scripting calls to this endpoint instead of using the UI manually

Known gotchas

Related routes

Configure Grafana Pyroscope pull mode with Grafana Alloy to scrape pprof endpoints from Go services and store profiles in Pyroscope
grafana.com/docs/pyroscope · 6 steps · unrated
Instrument a Go service for continuous profiling with Grafana Pyroscope using the push SDK
grafana.com · 5 steps · unrated
Instrument a Python application with the Pyroscope SDK for continuous profiling
grafana.com · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans