-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Previously in the networkpolicy_dashboard throughput of deny NPs queries we require AVG(throughput) > 0, it turns out to be almost all the deny connection have throughput = 0. That is because they only send one packet, and the byte counts is too small. In the throughput calculation, the very small byte counts yields a 0 throughput as the integer result. Thus, we change AVG(throughput) to SUM(octetDeltaCount), which effectively help us avoid the issue. Signed-off-by: heanlan <hanlan@vmware.com>
- Loading branch information
Showing
2 changed files
with
42 additions
and
40 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
Oops, something went wrong.