Skip to content
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-5086-12634 Agent model refactor. #3338

Draft
wants to merge 19 commits into
base: v3
Choose a base branch
from

Conversation

JiriCtvrtka
Copy link
Contributor

PMM-5086
PMM-12634

  • Links to related pull requests (optional).


if !pmmAgentVersion.Less(postgresExporterCollectorsVersion) {
disableCollectorArgs := collectors.DisableDefaultEnabledCollectors("--no-collector.", defaultPostgresExporterCollectors, exporter.DisabledCollectors)
disableCollectorArgs := collectors.DisableDefaultEnabledCollectors("--no-collector.", defaultPostgresExporterCollectors, exporter.ExporterOptions.DisabledCollectors)

Choose a reason for hiding this comment

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

🚫 [golangci] reported by reviewdog 🐶
the line is 173 characters long, which exceeds the maximum of 170 characters. (lll)

func (c *AWSOptions) Scan(src interface{}) error { return jsonScan(c, src) }

// AzureOptions represents structure for special Azure options.
type AzureOptions struct {

Choose a reason for hiding this comment

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

🚫 [golangci] reported by reviewdog 🐶
the methods of "AzureOptions" use pointer receiver and non-pointer receiver. (recvcheck)

func (c *ExporterOptions) Scan(src interface{}) error { return jsonScan(c, src) }

// QANOptions represents structure for special QAN options.
type QANOptions struct {

Choose a reason for hiding this comment

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

🚫 [golangci] reported by reviewdog 🐶
the methods of "QANOptions" use pointer receiver and non-pointer receiver. (recvcheck)

func (c *QANOptions) Scan(src interface{}) error { return jsonScan(c, src) }

// AWSOptions represents structure for special AWS options.
type AWSOptions struct {

Choose a reason for hiding this comment

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

🚫 [golangci] reported by reviewdog 🐶
the methods of "AWSOptions" use pointer receiver and non-pointer receiver. (recvcheck)

TenantID string `json:"tenant_id"`
ResourceGroup string `json:"resource_group"`
// MySQLOptions represents structure for special MySQL options.
type MySQLOptions struct {

Choose a reason for hiding this comment

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

🚫 [golangci] reported by reviewdog 🐶
the methods of "MySQLOptions" use pointer receiver and non-pointer receiver. (recvcheck)

TLSCert string `json:"tls_cert"`
TLSKey string `json:"tls_key"`
// ExporterOptions represents structure for special Exporter options.
type ExporterOptions struct {

Choose a reason for hiding this comment

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

🚫 [golangci] reported by reviewdog 🐶
the methods of "ExporterOptions" use pointer receiver and non-pointer receiver. (recvcheck)

managed/services/agents/mongodb.go Outdated Show resolved Hide resolved
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.

2 participants