---
title: "Get started with Pyroscope | Grafana Pyroscope documentation"
description: "Learn how to get started with Pyroscope."
---

# Get started with Pyroscope

Choose one of the following options to get started with Pyroscope:

The **written tutorial** below provides a series of imperative commands to start a single Pyroscope process, or [monolith](../reference-pyroscope-architecture/deployment-modes/#monolithic-mode), which is designed for users getting started with the project.

You can also use [`multiple examples`](https://github.com/grafana/pyroscope/tree/main/examples) to help you quickly get started using Pyroscope and Grafana.

Every example has a `docker-compose.yml` manifest that includes all of the options needed to explore profiling data in Grafana, including resource configuration and profiling data generation.

For more information on the different ways to deploy Pyroscope, see [Pyroscope deployment modes](../reference-pyroscope-architecture/deployment-modes/).

## Before you begin

Verify that you have installed [Docker](https://docs.docker.com/engine/install/).

> Note
> 
> By default, Pyroscope reports anonymous, non-sensitive, non-personally identifiable information about the running cluster to a remote statistics server to help Pyroscope maintainers understand how the open source community runs Pyroscope.
> 
> To opt out, refer to [Disable the anonymous usage statistics reporting](../configure-server/anonymous-usage-statistics-reporting#disable-the-anonymous-usage-statistics-reporting).

## Download and configure Pyroscope

1. Download Pyroscope.
   
   You can use Docker or download a binary to install Pyroscope.
   
   - To install with Docker, run the following command:
     
     Bash ![Copy code to clipboard](/media/images/icons/icon-copy-small-2.svg) Copy
     
     ```bash
     docker pull grafana/pyroscope:latest
     ```
   - To use a local binary:
     
     Download the appropriate [release asset](https://github.com/grafana/pyroscope/releases/latest) for your operating system and architecture and make it executable.
     
     For example, for Linux with the AMD64 architecture:
     
     Bash ![Copy code to clipboard](/media/images/icons/icon-copy-small-2.svg) Copy
     
     ```bash
     # Download Pyroscope v1.0.0 and unpack it to the current folder
     curl -fL https://github.com/grafana/pyroscope/releases/download/v1.0.0/pyroscope_1.0.0_linux_amd64.tar.gz | tar xvz
     ```
2. Run Pyroscope.
   
   In a terminal, run one of the following commands:
   
   - Using Docker:
     
     Bash ![Copy code to clipboard](/media/images/icons/icon-copy-small-2.svg) Copy
     
     ```bash
     docker network create pyroscope-demo
     docker run --rm --name pyroscope --network=pyroscope-demo -p 4040:4040 grafana/pyroscope:latest
     ```
   - Using a local binary:
     
     Bash ![Copy code to clipboard](/media/images/icons/icon-copy-small-2.svg) Copy
     
     ```bash
     ./pyroscope
     ```
3. Verify that Pyroscope is ready. Pyroscope listens on port `4040`.
   
   Bash ![Copy code to clipboard](/media/images/icons/icon-copy-small-2.svg) Copy
   
   ```bash
   curl localhost:4040/ready
   ```
4. Configure Pyroscope to scrape profiles.
   
   By default, Pyroscope is configured to scrape itself. To collect more profiles, you must either instrument your application with an SDK or use Grafana Alloy.
   
   To learn more about language integrations and the Pyroscope agent, refer to [Pyroscope Agent](../configure-client/).

## Add a Pyroscope data source and query data

1. In a terminal, run a local Grafana server using Docker:
   
   Bash ![Copy code to clipboard](/media/images/icons/icon-copy-small-2.svg) Copy
   
   ```bash
   docker run --rm --name=grafana \
     --network=pyroscope-demo \
     -p 3000:3000 \
     -e "GF_PLUGINS_PREINSTALL_SYNC=grafana-pyroscope-app"\
     -e "GF_AUTH_ANONYMOUS_ENABLED=true" \
     -e "GF_AUTH_ANONYMOUS_ORG_ROLE=Admin" \
     -e "GF_AUTH_DISABLE_LOGIN_FORM=true" \
     grafana/grafana:main
   ```
2. In a browser, go to the Grafana server at [http://localhost:3000/datasources](http://localhost:3000/datasources).
3. Use the following settings to configure a Pyroscope data source to query the local Pyroscope server:
   
   Expand table
   
   | Field | Value                                                                                                                                      |
   |-------|--------------------------------------------------------------------------------------------------------------------------------------------|
   | Name  | Pyroscope                                                                                                                                  |
   | URL   | [http://pyroscope:4040/](http://pyroscope:4040/) OR [http://host.docker.internal:4040/](http://host.docker.internal:4040/) if using Docker |

To learn more about adding data sources, refer to [Add a data source](/docs/grafana/latest/datasources/add-a-data-source/).

1. In a browser, go to [Profiles Drilldown](/docs/grafana/latest/explore/simplified-exploration/profiles/) in your Grafana instance at [https://localhost:3000/a/grafana-pyroscope-app/profiles-explorer](https://localhost:3000/a/grafana-pyroscope-app/profiles-explorer). This will let you use an intuitive interface for exploring your profile data.

When you have completed the tasks in this getting started guide, you can create dashboard panels using the newly configured Pyroscope data source. For more information on working with dashboards with Grafana, refer to [Panels and visualizations](/docs/grafana/latest/panels-visualizations/) in the Grafana documentation.
