github.com/pyroscope-io/pyroscope@v0.37.3-0.20230725203016-5f6947968bd0/examples/grafana-agent/agent/config/config.river (about) 1 logging { 2 level = "debug" 3 format = "logfmt" 4 } 5 6 pyroscope.write "example" { 7 // Send metrics to a locally running Phlare instance. 8 endpoint { 9 url = "http://pyroscope:4100" 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:4100", "service_name"="pyroscope"}, 26 {"__address__" = "agent:12345", "service_name"="agent"}, 27 ] 28 forward_to = [pyroscope.write.example.receiver] 29 }