Skip to content

Commit cc1b251

Browse files
committed
PMM-13602 fix linters.
1 parent b8fbbde commit cc1b251

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

exporter/collstats_collector.go

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func newCollectionStatsCollector(ctx context.Context, client *mongo.Client, logg
4242
ctx: ctx,
4343
base: newBaseCollector(client, logger.WithFields(logrus.Fields{"collector": "collstats"})),
4444

45-
compatibleMode: false, //there are no compatible metrics for this collector.
45+
compatibleMode: false, // there are no compatible metrics for this collector.
4646
discoveringMode: discovery,
4747
topologyInfo: topology,
4848

@@ -107,16 +107,8 @@ 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+
111+
pipeline := mongo.Pipeline{aggregation}
120112

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

exporter/top_collector.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func newTopCollector(ctx context.Context, client *mongo.Client, logger *logrus.L
4242
return &topCollector{
4343
ctx: ctx,
4444
base: newBaseCollector(client, logger.WithFields(logrus.Fields{"collector": "top"})),
45-
compatibleMode: false, //there are no compatible metrics for this collector.
45+
compatibleMode: false, // there are no compatible metrics for this collector.
4646
topologyInfo: topology,
4747
}
4848
}

0 commit comments

Comments
 (0)