github.com/grafana/pyroscope@v1.18.0/examples/grafana-alloy-auto-instrumentation/golang-pull/README.md (about)

     1  # Grafana Alloy Pull Mode Integration
     2  
     3  This example demonstrates how you can use Grafana Alloy with Grafana Pyroscope (formerly known as Phlare).
     4  
     5  ### 1. Configure Grafana Alloy
     6  
     7  You'll need to configure the Grafana Alloy for things like profiling configuration, targets, and possibly authentication in order to have the Grafana Alloy pull profiles from your application.
     8  
     9  You can find a list of [arguments](https://grafana.com/docs/alloy/latest/reference/components/pyroscope/pyroscope.scrape/#arguments) and [supported blocks](https://grafana.com/docs/alloy/latest/reference/components/pyroscope/pyroscope.scrape/#blocks) in the [Grafana Alloy documentation for pyroscope](https://grafana.com/docs/alloy/latest/reference/components/pyroscope/pyroscope.scrape/)
    10  
    11  Refer to [config file](alloy/config.alloy) to see an example of how to configure Grafana Alloy to send profiling data to Pyroscope.
    12  
    13  ### 2. Run Grafana Alloy, Grafana and Pyroscope
    14  
    15  ```shell
    16  # Pull latest pyroscope and grafana images:
    17  docker pull grafana/pyroscope:latest
    18  docker pull grafana/grafana:latest
    19  docker pull grafana/alloy:latest
    20  
    21  docker-compose up -d
    22  ```
    23  
    24  ### 3. Observe profiling data
    25  
    26  Now that everything is set up, you can browse profiling data.
    27  
    28  #### Explore profiles
    29  [Explore profiles app](http://localhost:3000/a/grafana-pyroscope-app/profiles-explorer).
    30  
    31  ![image](https://github.com/user-attachments/assets/71cb5a6e-2f5f-4f80-b868-d17fc30c2ca1)
    32  ![image](https://github.com/user-attachments/assets/00e45eac-0d2d-4229-85f0-3d2321c4542a)
    33  
    34  #### Dashboard
    35  You will also find a dummy [dashboard](http://localhost:3000/d/65gjqY3Mk/main).
    36