-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
metrics(netcheck): Add the basic netcheck metrics (#1048)
This adds the basic metrics to netcheck. There's probably room for more. Also updates the macros to be a bit more ergonomic: - Allow optional trailing comma on the last item in the metrics definition. - When using metrics start a new scope for the compiler so that we can use it anywhere, e.g. also in match statements where the expression is followed with a , rather than a ;. Closes #927
- Loading branch information
Showing
5 changed files
with
62 additions
and
50 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
super::make_metric_recorders! { | ||
Netcheck, | ||
|
||
StunPacketsDropped: Counter: "Incoming STUN packets dropped due to a full receiving queue.", | ||
StunPacketsSentIpv4: Counter: "Number of IPv4 STUN packets sent", | ||
StunPacketsSentIpv6: Counter: "Number of IPv6 STUN packets sent", | ||
StunPacketsRecvIpv4: Counter: "Number of IPv4 STUN packets received", | ||
StunPacketsRecvIpv6: Counter: "Number of IPv6 STUN packets received", | ||
Reports: Counter: "Number of reports executed by netcheck, including full reports", | ||
ReportsFull: Counter: "Number of full reports executed by netcheck", | ||
ReportsError: Counter: "Number of executed reports resulting in an error", | ||
} |