github.com/grafana/pyroscope@v1.18.0/examples/language-sdk-instrumentation/nodejs/express/README.md (about)

     1  # Pyroscope push mode
     2  
     3  This example demonstrates how Pyroscope can be used to profile nodejs server.
     4  
     5  ### 1. Run Pyroscope server and demo application in docker containers
     6  
     7  ```shell
     8  docker-compose up -d
     9  ```
    10  
    11  As a sample application we use slightly modified rideshare app
    12  
    13  Note: you may want to configure pyroscope server by provisioning an env var
    14  
    15  ```
    16  export PYROSCOPE_SERVER=http://localhost:4040
    17  node index.js
    18  ```
    19  
    20  ### 2. Observe profiling data
    21  
    22  Profiling is more fun when the application does some work, so it shipped with built-in load generator.
    23  
    24  Now that everything is set up, you can browse profiling data via [Pyroscope UI](http://localhost:4040).