-
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.
Add e2e test of Grafana dashboard (#71)
* Add e2e test of Grafana dashboard This commit adds e2e test of pre-built Grafana dashboards, by: 1. Get dashboard JSON by uid 2. Read dashboard JSON file and get the queries 3. Execute the queries and check whether the expected contents is contained in the result data frame Given we cannot access Grafana through nodePort on Kind cluster, before sending request to Grafana backend HTTP API, we firstly port-forward Grafana Service port to a local port. Signed-off-by: heanlan <hanlan@vmware.com> * Pull flow-aggregator image from docker hub Signed-off-by: heanlan <hanlan@vmware.com> * Edit deny NP queries 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
11 changed files
with
495 additions
and
108 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.