7.3 Testing the Count Connector
Exercise
Start the Gateway:
In the Gateway terminal window run:
Start the Agent:
In the Agent terminal window run:
Start the Loadgen:
In the Spans terminal window send 8 spans with the following loadgen command:
Both the Agent and Gateway will display debug information, showing they are processing data. Wait until the loadgen completes.
Verify the metrics:
While processing the span, the Agent, has generated metrics and passed them on to the Gateway. The Gateway has written them into gateway-metrics.out.
To confirm the presence of user.card-chargeand verify each one has an attribute user.name in the metrics output, run the following jq query:
Important
Stop the Agent and the Gateway processes by pressing Ctrl-C in their respective terminals.