From 65be0e07d548a7f6e048fb419f9a0c8f58bb9465 Mon Sep 17 00:00:00 2001 From: Koki Kato Date: Mon, 1 Apr 2024 19:07:37 +0900 Subject: [PATCH] docs: Fix invalid references to `targets` in discovery.relabel (#3153) --- docs/sources/configure-client/grafana-agent/ebpf/setup-linux.md | 2 +- docs/sources/configure-client/grafana-agent/go_pull.md | 2 +- .../grafana-agent-auto-instrumentation/ebpf/k8s/config.river | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/sources/configure-client/grafana-agent/ebpf/setup-linux.md b/docs/sources/configure-client/grafana-agent/ebpf/setup-linux.md index 7fa1bac39e..6e4b51229f 100644 --- a/docs/sources/configure-client/grafana-agent/ebpf/setup-linux.md +++ b/docs/sources/configure-client/grafana-agent/ebpf/setup-linux.md @@ -78,7 +78,7 @@ discovery.relabel "agent" { pyroscope.ebpf "instance" { forward_to = [pyroscope.write.endpoint.receiver] - targets = discovery.relabel.agent.targets + targets = discovery.relabel.agent.output } pyroscope.scrape "local" { diff --git a/docs/sources/configure-client/grafana-agent/go_pull.md b/docs/sources/configure-client/grafana-agent/go_pull.md index 89381ac0ad..26ce8961ad 100644 --- a/docs/sources/configure-client/grafana-agent/go_pull.md +++ b/docs/sources/configure-client/grafana-agent/go_pull.md @@ -195,7 +195,7 @@ pyroscope.write "write_job_name" { } ``` -3. Use `discovery.relabel.specific_pods.targets` as a target for `pyroscope.scrape` block. +3. Use `discovery.relabel.specific_pods.output` as a target for `pyroscope.scrape` block. ```river pyroscope.scrape "scrape_job_name" { diff --git a/examples/grafana-agent-auto-instrumentation/ebpf/k8s/config.river b/examples/grafana-agent-auto-instrumentation/ebpf/k8s/config.river index cb57c52d5b..344c2f10c6 100644 --- a/examples/grafana-agent-auto-instrumentation/ebpf/k8s/config.river +++ b/examples/grafana-agent-auto-instrumentation/ebpf/k8s/config.river @@ -55,7 +55,7 @@ discovery.relabel "specific_pods" { pyroscope.ebpf "instance" { forward_to = [pyroscope.write.endpoint.receiver] - targets = discovery.relabel.specific_pods.targets + targets = discovery.relabel.specific_pods.output } pyroscope.write "endpoint" {