Viewing Network Ingress and Egress
You can view details of your organization's network transfer and storage usage on your Plan > Plan Usage screen. In addition, you can find out more about how to manage your network and storage costs here.
However, you may like to determine the network transfer (ingress and egress) of a specific build. This may be useful for your team, in order to diagnose which processes in the build may be consuming high network transfer usage for instance.
For Docker-based jobs, you can inspect the overall network transfer under the Network transfer section of the Resources tab.
Additionally, you can also inspect the networking information, particularly from `/proc/net/dev`, before and after a command is executed.
This is useful in estimating the network transfer from a specific command,
Extending on the method above, here is an example Orb that will calculate the stats in a readable format. We can see it in action with an example screenshot below:
To illustrate how to use the
network command of this Orb, you can set up your config file like this to see how many bytes are transmitted and received for a cURL request, for example:
- image: cimg/base:stable
NOTE: Your overall Network Transfer amount is not representative of your billable usage. Only certain actions will result in network egress, which in turn results in billable usage. For more information, do check out our guide here: https://circleci.com/docs/2.0/persist-data/#overview-of-storage-and-network-transfer
Article is closed for comments.