Skip to content

Commit

Permalink
wire up the new metric correctly
Browse files Browse the repository at this point in the history
Signed-off-by: erikbaranowski <[email protected]>
  • Loading branch information
erikbaranowski committed May 21, 2024
1 parent 782386e commit 1a3b9a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static/integrations/snmp_exporter/snmp_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 1a3b9a3

Please sign in to comment.