Skip to content

Commit

Permalink
PMM-12522 Cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
BupycHuk committed May 11, 2024
1 parent fa2a7ce commit ba10d54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exporter/shards_collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ func chunksTotal(ctx context.Context, client *mongo.Client) (prometheus.Metric,
return prometheus.NewConstMetric(d, prometheus.GaugeValue, float64(n))
}

func chunksTotalPerShard(ctx context.Context, client *mongo.Client) ([]prometheus.Metric, error) { //nolint:ireturn
func chunksTotalPerShard(ctx context.Context, client *mongo.Client) ([]prometheus.Metric, error) {
aggregation := bson.D{
{Key: "$group", Value: bson.M{"_id": "$shard", "count": bson.M{"$sum": 1}}},
}
Expand Down

0 comments on commit ba10d54

Please sign in to comment.