Skip to content

Commit b8fbbde

Browse files
committed
PMM-13602 enable indexDetails.
1 parent c939630 commit b8fbbde

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

exporter/collstats_collector.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -107,16 +107,16 @@ func (d *collstatsCollector) collect(ch chan<- prometheus.Metric) {
107107
},
108108
},
109109
}
110-
project := bson.D{
111-
{
112-
Key: "$project", Value: bson.M{
113-
"storageStats.wiredTiger": 0,
114-
"storageStats.indexDetails": 0,
115-
},
116-
},
117-
}
118-
119-
pipeline := mongo.Pipeline{aggregation, project}
110+
//project := bson.D{
111+
// {
112+
// Key: "$project", Value: bson.M{
113+
// "storageStats.wiredTiger": 0,
114+
// "storageStats.indexDetails": 0,
115+
// },
116+
// },
117+
//}
118+
119+
pipeline := mongo.Pipeline{aggregation}//project
120120

121121
cursor, err := client.Database(database).Collection(collection).Aggregate(d.ctx, pipeline)
122122
if err != nil {

exporter/metrics_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ func TestRawToCompatibleRawMetric(t *testing.T) {
211211
}
212212

213213
for _, tc := range testCases {
214-
m := metricRenameAndLabel(tc.in, specialConversions())
214+
m := metricRenameAndLabel(tc.in, specialConversions)
215215
assert.Equal(t, m[0], tc.want)
216216
}
217217
}

0 commit comments

Comments
 (0)