From ccd4f17ac98a2bd69af9449f4a3c2fdb51ceb0ed Mon Sep 17 00:00:00 2001 From: Nurlan Moldomurov Date: Thu, 26 Sep 2024 12:43:50 +0300 Subject: [PATCH] fix panic in v0.41.0. (#919) --- exporter/feature_compatibility_version_collector.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/feature_compatibility_version_collector.go b/exporter/feature_compatibility_version_collector.go index 96d996f5..871544c6 100644 --- a/exporter/feature_compatibility_version_collector.go +++ b/exporter/feature_compatibility_version_collector.go @@ -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