diff --git a/internal/static/integrations/snmp_exporter/snmp_exporter.go b/internal/static/integrations/snmp_exporter/snmp_exporter.go index ca968e7226..98aed8496b 100644 --- a/internal/static/integrations/snmp_exporter/snmp_exporter.go +++ b/internal/static/integrations/snmp_exporter/snmp_exporter.go @@ -155,7 +155,7 @@ func NewSNMPMetrics(reg prometheus.Registerer) collector.Metrics { Help: "Number of SNMP packet retries.", }, ), - SNMPInflight: promauto.NewGauge( + SNMPInflight: promauto.With(reg).NewGauge( prometheus.GaugeOpts{ Namespace: namespace, Name: "request_in_flight",