github.com/grafana/pyroscope@v1.18.0/examples/grafana-alloy-auto-instrumentation/golang-pull/alloy/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 23 pyroscope.scrape "default" { 24 targets = [ 25 {"__address__" = "pyroscope:4040", "service_name"="pyroscope"}, 26 {"__address__" = "alloy:12345", "service_name"="alloy"}, 27 ] 28 forward_to = [pyroscope.write.example.receiver] 29 }