PMM-12522 collect chunks metrics in low resolution #532
Annotations
7 errors
Lint Check:
exporter/v1_compatibility.go#L785
calculated cyclomatic complexity for function specialMetrics is 14, max is 10 (cyclop)
|
Lint Check:
exporter/shards_collector.go#L243
type assertion must be checked (forcetypeassert)
|
Lint Check:
exporter/general_collector.go#L55
mongodbUpMetric returns interface (github.com/prometheus/client_golang/prometheus.Metric) (ireturn)
|
Lint Check:
exporter/shards_collector.go#L211
chunksTotal returns interface (github.com/prometheus/client_golang/prometheus.Metric) (ireturn)
|
Lint Check:
exporter/shards_collector.go#L214
error returned from external package is unwrapped: sig: func (*go.mongodb.org/mongo-driver/mongo.Collection).CountDocuments(ctx context.Context, filter interface{}, opts ...*go.mongodb.org/mongo-driver/mongo/options.CountOptions) (int64, error) (wrapcheck)
|
Lint Check:
exporter/shards_collector.go#L231
error returned from external package is unwrapped: sig: func (*go.mongodb.org/mongo-driver/mongo.Collection).Aggregate(ctx context.Context, pipeline interface{}, opts ...*go.mongodb.org/mongo-driver/mongo/options.AggregateOptions) (*go.mongodb.org/mongo-driver/mongo.Cursor, error) (wrapcheck)
|
Lint Check:
exporter/shards_collector.go#L236
error returned from external package is unwrapped: sig: func (*go.mongodb.org/mongo-driver/mongo.Cursor).All(ctx context.Context, results interface{}) error (wrapcheck)
|