Skip to content

Commit

Permalink
adjust percona-toolkit commit
Browse files Browse the repository at this point in the history
  • Loading branch information
masaruhoshi committed Jun 2, 2021
1 parent 75adba4 commit 317cea1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion exporter/collstats_collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ func (d *collstatsCollector) Collect(ch chan<- prometheus.Metric) {
collection := parts[1]

aggregation := bson.D{
{Key: "$collStats", Value: bson.M{"latencyStats": bson.E{Key: "histograms", Value: true}}},
{Key: "$collStats", Value: bson.M{
"latencyStats": bson.E{Key: "histograms", Value: true},
"storageStats": bson.E{Key: "scale", Value: 1},
}},
}

cursor, err := d.client.Database(database).Collection(collection).Aggregate(d.ctx, mongo.Pipeline{aggregation})
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ require (
github.com/AlekSi/pointer v1.1.0
github.com/alecthomas/kong v0.2.16
github.com/percona/exporter_shared v0.7.2
github.com/percona/percona-toolkit v0.0.0-20210504134948-4dd72d96b10d
github.com/percona/percona-toolkit v0.0.0-20210422154412-6917c5dd8594
github.com/pkg/errors v0.9.1
github.com/prometheus/client_golang v1.10.0
github.com/prometheus/client_model v0.2.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,8 @@ github.com/pelletier/go-toml v1.7.0/go.mod h1:vwGMzjaWMwyfHwgIBhI2YUM4fB6nL6lVAv
github.com/percona/exporter_shared v0.7.2 h1:8eNBht83bgFagdiIm3b4HbsOFc5du6OUBCUVenTumdw=
github.com/percona/exporter_shared v0.7.2/go.mod h1:AWk9lgTPzI7tC5PzpeBGvhhqjSJNxpPNFaF7qLIJqmo=
github.com/percona/go-mysql v0.0.0-20190903141930-197f4ad8db8d/go.mod h1:/SGLf9OMxlnK6jq4mkFiImBcJXXk5jwD+lDrwDaGXcw=
github.com/percona/percona-toolkit v0.0.0-20210504134948-4dd72d96b10d h1:RCnD2c2+ur6z0Lee/VLEXuGT1TKvZs/i3nYrWZ4WrT0=
github.com/percona/percona-toolkit v0.0.0-20210504134948-4dd72d96b10d/go.mod h1:uGrhLglXccEIplDyzQSJfv3UWG5J7ACFjaZebntKStQ=
github.com/percona/percona-toolkit v0.0.0-20210422154412-6917c5dd8594 h1:qzmPRDROQ0l0sZI0jMMM79n24aFHu+Z0dPJF3iidwYg=
github.com/percona/percona-toolkit v0.0.0-20210422154412-6917c5dd8594/go.mod h1:uGrhLglXccEIplDyzQSJfv3UWG5J7ACFjaZebntKStQ=
github.com/performancecopilot/speed v3.0.0+incompatible/go.mod h1:/CLtqpZ5gBg1M9iaPbIdPPGyKcA8hKdoy6hAWba7Yac=
github.com/pierrec/lz4 v1.0.2-0.20190131084431-473cd7ce01a1/go.mod h1:3/3N9NVKO0jef7pBehbT1qWhCMrIgbYNnFAZCqQ5LRc=
github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY=
Expand Down

0 comments on commit 317cea1

Please sign in to comment.