github.com/pyroscope-io/pyroscope@v0.37.3-0.20230725203016-5f6947968bd0/examples/nodejs/express-pull/README.md (about) 1 # Pyroscope pull with static targets 2 3 This example demonstrates how Pyroscope can be used to scrape pprof profiles from remote nodejs targets. 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 that we apply configuration defined in `server.yml`: 14 15 <details> 16 <summary>server.yml</summary> 17 18 ```yaml 19 --- 20 log-level: debug 21 scrape-configs: 22 - job-name: testing 23 enabled-profiles: [cpu] 24 static-configs: 25 - application: rideshare 26 spy-name: nodespy 27 targets: 28 - rideshare:3000 29 labels: 30 env: dev 31 ``` 32 33 </details> 34 35 ### 2. Observe profiling data 36 37 Profiling is more fun when the application does some work, so it shipped with built-in load generator. 38 39 Now that everything is set up, you can browse profiling data via [Pyroscope UI](http://localhost:4040).