Skip to content

Conversation

@percona-csalguero
Copy link
Contributor

percona-csalguero and others added 23 commits August 6, 2021 15:56
In my local I have go 1.17 so the sum was different and tests were
failing.
This reverts commit 8905fce, reversing
changes made to 4553084.
Now discovering mode automatically search for all databases and all
collections. It might receive a filter list and ignores system
collections.
@percona-csalguero percona-csalguero changed the title Pmm 8770 enable safe metrics collection PMM-8770 enable safe metrics collection Dec 1, 2021
var stats []bson.M
if err = cursor.All(d.ctx, &stats); err != nil {
d.logger.Errorf("cannot get $indexStats for collection %s.%s: %s", database, collection, err)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unnecessary whitespace

main.go Outdated
DisableDiagnosticData bool `name:"no-collector.diagnosticdata" help:"Disable collecting metrics from getDiagnosticData"`
DisableReplicasetStatus bool `name:"no-collector.replicasetstatus" help:"Disable collecting metrics from replSetGetStatus"`
EnableDBStats bool `name:"collector.dbstats" help:"Enable collecting metrics from dbStats"`
CollStatsLimit int `name:"collector.collstats-limit" help:"Enable collstats and indexstats collector only if there are less than <n> collections. -1=No limit" default:"100"`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would set no limit by default.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And if we need limit in PMM set it there.

@BupycHuk
Copy link
Member

BupycHuk commented Dec 1, 2021

Please fix all golint issues

@percona-csalguero percona-csalguero merged commit c8360b4 into main Dec 1, 2021
@percona-csalguero percona-csalguero deleted the PMM-8770_enable_safe_metrics_collection branch December 1, 2021 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants