Skip to content

Commit

Permalink
fix panic in v0.41.0. (#919)
Browse files Browse the repository at this point in the history
  • Loading branch information
BupycHuk authored Sep 26, 2024
1 parent f2df2a6 commit ccd4f17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exporter/feature_compatibility_version_collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func (d *featureCompatibilityCollector) Collect(ch chan<- prometheus.Metric) {
}

func (d *featureCompatibilityCollector) collect(ch chan<- prometheus.Metric) {
defer measureCollectTime(ch, "mongodb", "profile")()
defer measureCollectTime(ch, "mongodb", "fcv")()

cmd := bson.D{{Key: "getParameter", Value: 1}, {Key: "featureCompatibilityVersion", Value: 1}}
client := d.base.client
Expand Down

0 comments on commit ccd4f17

Please sign in to comment.