github.com/grafana/pyroscope@v1.18.0/examples/language-sdk-instrumentation/nodejs/express-pull/agent.config.alloy (about) 1 logging { 2 level = "debug" 3 format = "logfmt" 4 } 5 6 pyroscope.write "example" { 7 // Send metrics to a locally running Pyroscope instance. 8 endpoint { 9 url = "http://pyroscope:4040" 10 11 // To send data to Grafana Cloud you'll need to provide username and password. 12 // basic_auth { 13 // username = "myuser" 14 // password = "mypassword" 15 // } 16 } 17 external_labels = { 18 "env" = "example", 19 } 20 } 21 22 pyroscope.scrape "default" { 23 targets = [ 24 {"__address__" = "us-east:5000", "service_name"="nodejs"}, 25 {"__address__" = "eu-north:5000", "service_name"="nodejs"}, 26 {"__address__" = "ap-south:5000", "service_name"="nodejs"}, 27 ] 28 forward_to = [pyroscope.write.example.receiver] 29 profiling_config { 30 profile.memory { // disable memory, use godeltaprof_memory instead 31 path = "/debug/pprof/heap" 32 } 33 } 34 }