You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/conf/1-advanced-collector/1-agent-gateway/1-2-send-metrics.md
+8-13Lines changed: 8 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,17 +3,8 @@ title: 1.2 Send Metrics
3
3
linkTitle: 1.2 Send Metrics
4
4
weight: 3
5
5
---
6
-
Now that the **gateway** is running, it’s time to test the full telemetry flow.
7
6
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**.
@@ -33,6 +24,12 @@ If everything is configured correctly, the first and last lines of the output sh
33
24
2025-06-09T09:22:11.944+0100 info [email protected]/service.go:289 Everything is ready. Begin running and processing data. {"resource": {}}
34
25
```
35
26
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
+
36
33
**Start the Agent**: In the **Agent terminal** window start the agent with the agent configuration:
37
34
38
35
```bash { title="Start the Agent" }
@@ -55,9 +52,7 @@ Timestamp: 2025-01-15 15:27:51.319526 +0000 UTC
55
52
Value: 9637.660000
56
53
```
57
54
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.
61
56
62
57
**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.
0 commit comments