-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net: Add bytes sent/received metrics
Adds two basic metrics that track bytes sent and received from the networking stack. This can give a better per application insight than what host wide metrics (for example via node exporter) can do. Further it can serve as a comparison point with host based metrics for possible write amplification (though this is less likely on the network side). The patch follows a similar pattern as to how memory and disk based metrics work. Note one might be inclined to introduce some grouping into the metrics in relation to either the interface or source IP similar to how we have mountpoints and/or groups on the disk side. While this sounds useful at first in practice it would be less useful. Often for the major cloud providers and similar in self hosted environments there is only a single interface/source-IP and routing happens at a later point (switches, routers etc.). Further, adding this separation would make the implementation more expensive in either compute or memory space. We link the metrics to the cpu scheduling group which allows for getting a more detailed picture of where the network usage is coming from. Further it sets up for future network scheduling at the group level.
- Loading branch information
1 parent
808766d
commit ed98fa8
Showing
7 changed files
with
97 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters