diff --git a/exporter/exporter.go b/exporter/exporter.go index 4ae1d08d..0079e07f 100644 --- a/exporter/exporter.go +++ b/exporter/exporter.go @@ -499,7 +499,7 @@ func validateMaps(module *libbpfgo.Module, cfg config.Config) error { maps := []string{} for _, counter := range cfg.Metrics.Counters { - if counter.Name != "" { + if counter.Name != "" && !counter.PerfEventArray { maps = append(maps, counter.Name) } }