Skip to content

Commit 300ffda

Browse files
committed
Moved starting the gateway into send-metrics section
1 parent ba224a1 commit 300ffda

File tree

2 files changed

+16
-20
lines changed

2 files changed

+16
-20
lines changed

content/en/conf/1-advanced-collector/1-agent-gateway/1-1-gateway.md

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -148,23 +148,3 @@ Let’s explore the `gateway.yaml` file that defines how the OpenTelemetry Colle
148148
* `gateway-logs.out`: stores log data
149149

150150
These files are created once the gateway is started and will be populated with real telemetry as the agent sends data. You can monitor these files in real time to observe the flow of telemetry through your pipeline.
151-
152-
{{% notice title="Exercise" style="green" icon="running" %}}
153-
154-
**Start the Gateway**: In the **Gateway terminal** window, run the following command to start the **Gateway**:
155-
156-
```bash {title="Start the Gateway"}
157-
../otelcol --config=gateway.yaml
158-
```
159-
160-
If everything is configured correctly, the first and last lines of the output should look like:
161-
162-
```text
163-
2025/06/09 09:22:11 settings.go:478: Set config to [gateway.yaml]
164-
...
165-
<snip to the end>
166-
...
167-
2025-06-09T09:22:11.944+0100 info [email protected]/service.go:289 Everything is ready. Begin running and processing data. {"resource": {}}
168-
```
169-
170-
{{% /notice %}}

content/en/conf/1-advanced-collector/1-agent-gateway/1-2-send-metrics.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,22 @@ This will confirm that communication between the agent and gateway is working as
1717

1818
{{% notice title="Exercise" style="green" icon="running" %}}
1919

20+
**Start the Gateway**: In the **Gateway terminal** window, run the following command to start the **Gateway**:
21+
22+
```bash {title="Start the Gateway"}
23+
../otelcol --config=gateway.yaml
24+
```
25+
26+
If everything is configured correctly, the first and last lines of the output should look like:
27+
28+
```text
29+
2025/06/09 09:22:11 settings.go:478: Set config to [gateway.yaml]
30+
...
31+
<snip to the end>
32+
...
33+
2025-06-09T09:22:11.944+0100 info [email protected]/service.go:289 Everything is ready. Begin running and processing data. {"resource": {}}
34+
```
35+
2036
**Start the Agent**: In the **Agent terminal** window start the agent with the agent configuration:
2137

2238
```bash { title="Start the Agent" }

0 commit comments

Comments
 (0)