Skip to content

Commit

Permalink
[documentation] update config.river sample for k8s ebpf use case (#3128)
Browse files Browse the repository at this point in the history
* [readme] fix documentation to prevent load errors

Error: /etc/agent/config.river:61:47: field "targets" does not exist

60 |     forward_to = [pyroscope.write.endpoint.receiver]
61 |     targets = discovery.relabel.specific_pods.targets
   |                                               ^^^^^^^
62 | }

* Fix another error in pyrsocope_write

URL needs to be part of a endpoint structure.

---------

Co-authored-by: Christian Simon <simon@swine.de>
  • Loading branch information
yashsarma and simonswine authored Apr 8, 2024
1 parent e3a643b commit 9da955c
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,12 @@ pyroscope.ebpf "instance" {
}

pyroscope.write "endpoint" {
url = "http://pyroscope:4040"
// url = "<Grafana Cloud URL>"
// basic_auth {
// username = "<Grafana Cloud User>"
// password = "<Grafana Cloud Password>"
// }
endpoint {
url = "http://pyroscope:4040"
// url = "<Grafana Cloud URL>"
// basic_auth {
// username = "<Grafana Cloud User>"
// password = "<Grafana Cloud Password>"
// }
}
}

0 comments on commit 9da955c

Please sign in to comment.