Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion tests/e2e/exporter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,9 @@ func (s *E2ESuite) TestExporterConfigmap(c *C) {
defer s.cleanupQueryClientPod(netCfg.Namespace, c)

s.verifyMetricsPresentViaSvcSimple(netCfg, v1alpha1.ServiceTypeClusterIP, fieldsAndLabels, clientPod, c)
s.verifyMetricsNotPresentViaSvcSimple(netCfg, v1alpha1.ServiceTypeClusterIP, cmFields, clientPod, c)
// nic_total is a NIC-count metric the exporter always publishes. NICConfig.Fields
// does not suppress it, so it is allowed alongside the configured fields.
s.verifyMetricsNotPresentViaSvcSimple(netCfg, v1alpha1.ServiceTypeClusterIP, append(cmFields, "nic_total"), clientPod, c)
}

// TestExporterNICClients tests verification of NIC metrics from various NIC clients
Expand Down