-
Notifications
You must be signed in to change notification settings - Fork 424
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PMM-12350 Reduce error logs from diagnostic data on arbiter nodes #819
Conversation
port, err := tu.PortForContainer(container) | ||
require.NoError(t, err) | ||
|
||
exporterOpts := &Opts{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [golangci-lint] reported by reviewdog 🐶
exporter.Opts is missing fields CollStatsNamespaces, CollStatsLimit, CompatibleMode, ConnectTimeoutMS, DisableDefaultRegistry, DiscoveringMode, ProfileTimeTS, TimeoutOffset, CurrentOpSlowTime, CollectAll, EnableDBStats, EnableDBStatsFreeStorage, EnableReplicasetStatus, EnableCurrentopMetrics, EnableTopMetrics, EnableIndexStats, EnableCollStats, EnableProfile, EnableShards, EnableOverrideDescendingIndex, IndexStatsCollections (exhaustruct)
@@ -236,6 +237,29 @@ func TestAllDiagnosticDataCollectorMetrics(t *testing.T) { | |||
} | |||
} | |||
|
|||
func TestDiagnosticErrorLogs(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [golangci-lint] reported by reviewdog 🐶
Function TestDiagnosticErrorLogs missing the call to method parallel (paralleltest)
@@ -199,6 +200,39 @@ func TestMongoS(t *testing.T) { | |||
} | |||
} | |||
|
|||
func TestArbiterCollectors(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [golangci-lint] reported by reviewdog 🐶
Function TestArbiterCollectors missing the call to method parallel (paralleltest)
r := e.makeRegistry(ctx, client, new(labelsGetterMock), *e.opts) | ||
|
||
res := r.Unregister(rsgsc) | ||
assert.Equal(t, false, res) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [golangci-lint] reported by reviewdog 🐶
bool-compare: use assert.False (testifylint)
Wrong ticket ), closing in favour of #820 |
PMM-12350 (optional, if ticket reported)
Below we provide a basic checklist of things that would make it a good PR:
Once all checks pass and the code is ready for review, please add
pmm-review-exporters
team as the reviewer. That would assign people from the review team automatically. Report any issues on our Forum.