Skip to content

grafana/pyroscope

Folders and files

NameName
Last commit message
Last commit date

Latest commit

27fff3e · Feb 26, 2025
Feb 25, 2025
Nov 3, 2023
Feb 21, 2025
Feb 26, 2025
Aug 16, 2023
Feb 20, 2025
Dec 30, 2024
Feb 19, 2025
Oct 21, 2022
Feb 19, 2025
Feb 18, 2025
Feb 25, 2025
Dec 12, 2024
Dec 12, 2024
Feb 5, 2025
Oct 4, 2024
Aug 3, 2023
Aug 18, 2023
Aug 21, 2024
Oct 25, 2023
Nov 13, 2024
Feb 25, 2025
Feb 24, 2025
Nov 17, 2023
May 15, 2023
Aug 3, 2023
Feb 27, 2023
Sep 20, 2023
Oct 31, 2022
Aug 29, 2023
May 31, 2022
Jul 18, 2023
Jul 21, 2023
Feb 25, 2025
Dec 12, 2024
Feb 23, 2025
May 10, 2023
Aug 3, 2023
Aug 3, 2023
Dec 30, 2024
Feb 5, 2024
Dec 30, 2024
Dec 11, 2024
Dec 30, 2024
Aug 3, 2023
Aug 28, 2023
Feb 19, 2025
Aug 3, 2023
Oct 4, 2024
Oct 4, 2024
Aug 3, 2023
Feb 19, 2025

Pyroscope

ci JS Tests Status Go Report License: AGPLv3 FOSSA Status Latest release DockerHub GoDoc

🎉 Announcement: The new Explore Profiles UI is here!

We are thrilled to announce the launch of the Explore Profiles UI, a brand-new way to explore and analyze your profiling data—now available as part of the Grafana Explore Apps suite! This new app brings you a queryless, intuitive experience for visualizing your profiling data, simplifying the entire process without the need to write complex queries.

explore_profiles_intro.mp4

What is Grafana Pyroscope?

Grafana Pyroscope is a continuous profiling platform designed to surface performance insights from your applications, helping you optimize resource usage such as CPU, memory, and I/O operations. With Pyroscope, you can both proactively and reactively address performance bottlenecks across your system.

The typical use cases are:

  • Proactive: Reducing resource consumption, improving application performance, or preventing latency issues.
  • Reactive: Quickly resolving incidents with line-level detail and debugging active CPU, memory, or I/O bottlenecks.

Pyroscope provides powerful tools to give you a comprehensive view of your application's behavior while allowing you to drill down into specific services for more targeted root cause analysis.

How Does Pyroscope Work?

deployment_diagram

Pyroscope consists of three main components:

  • Pyroscope Server: The server component that stores and processes profiling data.
  • Pyroscope SDKs(push) or Grafana alloy(pull) : The client-side part of Pyroscope that collects profiling data from your applications and sends it to the server.
  • Explore Profiles UI: A queryless, intuitive UI for visualizing and analyzing profiling data.

Pyroscope GIF Demo


Quick Start: Run Pyroscope server locally

Homebrew

brew install pyroscope-io/brew/pyroscope
brew services start pyroscope

Docker

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

For more documentation on how to configure Pyroscope server, see our server documentation.

Quick Start: Run Explore Profiles UI in Grafana

image

Grafana Cloud

The app UI and server are both installed and running automatically -- just start sending data!

Grafana OSS

You can run the Explore profiles UI in Grafana by installing the plugin from the Grafana Plugin Directory

For more information, check out the Explore Profiles README

Documentation

For more information on how to use Pyroscope with other programming languages, install it on Linux, or use it in production environment, check out our documentation:

Send data to server via Pyroscope agent (language specific)

For more documentation on how to add the Pyroscope agent to your code, see the agent documentation on our website or find language specific examples and documentation below:


Golang

Documentation
Examples

Java

Documentation
Examples

Python

Documentation
Examples

Ruby

Documentation
Examples

Node.js

Documentation
Examples

Dotnet

Documentation
Examples

eBPF

Documentation
Examples

Rust

Documentation
Examples

Our documentation contains the most recent list of supported languages and also an overview over what profiling types are supported per language.

Let us know what other integrations you want to see in our issues or in our slack.

Credits

Pyroscope is possible thanks to the excellent work of many people, including but not limited to:

  • Brendan Gregg — inventor of Flame Graphs
  • Julia Evans — creator of rbspy — sampling profiler for Ruby
  • Vladimir Agafonkin — creator of flamebearer — fast flame graph renderer
  • Ben Frederickson — creator of py-spy — sampling profiler for Python
  • Adam Saponara — creator of phpspy — sampling profiler for PHP
  • Alexei Starovoitov, Brendan Gregg, and many others who made BPF based profiling in Linux kernel possible
  • Jamie Wong — creator of speedscope — interactive flame graph visualizer

Contributing

To start contributing, check out our Contributing Guide

Thanks to the contributors of Pyroscope!