Skip to content

Commit ee71f9e

Browse files
committed
Formatting of content
1 parent 300ffda commit ee71f9e

File tree

1 file changed

+8
-13
lines changed

1 file changed

+8
-13
lines changed

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

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,8 @@ title: 1.2 Send Metrics
33
linkTitle: 1.2 Send Metrics
44
weight: 3
55
---
6-
Now that the **gateway** is running, it’s time to test the full telemetry flow.
76

8-
We’ll start the **agent**, which will begin by sending **metrics**. Then we’ll send **traces** and generate **logs** to verify that all signals are properly routed through the agent to the gateway.
9-
10-
You should see the resulting output appear in the following files:
11-
12-
* `gateway-traces.out`
13-
* `gateway-metrics.out`
14-
* `gateway-logs.out`
15-
16-
This will confirm that communication between the agent and gateway is working as expected.
7+
Now, we can start the **Gateway** and the **Agent**, which will start sending **metrics**. Then we will send **traces** and generate **logs** to verify that all signals are properly routed through the **Agent** to the **Gateway**.
178

189
{{% notice title="Exercise" style="green" icon="running" %}}
1910

@@ -33,6 +24,12 @@ If everything is configured correctly, the first and last lines of the output sh
3324
2025-06-09T09:22:11.944+0100 info [email protected]/service.go:289 Everything is ready. Begin running and processing data. {"resource": {}}
3425
```
3526

27+
Once the **Gateway** is running, it will listen for incoming data on port `5318` and export the received data to the following files:
28+
29+
* `gateway-traces.out`
30+
* `gateway-metrics.out`
31+
* `gateway-logs.out`
32+
3633
**Start the Agent**: In the **Agent terminal** window start the agent with the agent configuration:
3734

3835
```bash { title="Start the Agent" }
@@ -55,9 +52,7 @@ Timestamp: 2025-01-15 15:27:51.319526 +0000 UTC
5552
Value: 9637.660000
5653
```
5754

58-
At this stage, the **Agent** continues to collect **CPU** metrics once per hour or upon each restart and sends them to the gateway.
59-
60-
The **Gateway** processes these metrics and exports them to a file named `./gateway-metrics.out`. This file stores the exported metrics as part of the pipeline service.
55+
At this stage, the **Agent** continues to collect **CPU** metrics once per hour or upon each restart and sends them to the gateway. The **Gateway** processes these metrics and exports them to a file named `./gateway-metrics.out`. This file stores the exported metrics as part of the pipeline service.
6156

6257
**Verify Data arrived at Gateway**: To confirm that CPU metrics, specifically for `cpu0`, have successfully reached the gateway, we’ll inspect the `gateway-metrics.out` file using the `jq` command.
6358

0 commit comments

Comments
 (0)