diff --git a/tests/e2e/exporter_test.go b/tests/e2e/exporter_test.go index d75d5cc9..4dd96e59 100644 --- a/tests/e2e/exporter_test.go +++ b/tests/e2e/exporter_test.go @@ -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