-
Notifications
You must be signed in to change notification settings - Fork 135
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-9968 pmm-admin inventory add agent * --log-level #903
Conversation
Command ./bin/pmm-admin inventory add agent azure-database-exporter not exists, but exists rds-exporter and also exists in pmm-managed AgentsService::AddAzureDatabaseExporter |
… (after review)
…not -path "./vendor/*")"
ff316c1
# Conflicts: # api/inventorypb/agents.pb.go
@@ -457,3 +465,11 @@ func ToAPIAgent(q *reform.Querier, agent *models.Agent) (inventorypb.Agent, erro | |||
panic(fmt.Errorf("unhandled Agent type %s", agent.AgentType)) | |||
} | |||
} | |||
|
|||
func SpecifyLogLevel(variant inventorypb.LogLevel) string { |
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 🐶
exported function SpecifyLogLevel
should have comment or be unexported (golint)
@@ -236,6 +236,7 @@ func ToAPIAgent(q *reform.Querier, agent *models.Agent) (inventorypb.Agent, erro | |||
PushMetricsEnabled: agent.PushMetrics, | |||
DisabledCollectors: agent.DisabledCollectors, | |||
ProcessExecPath: processExecPath, | |||
LogLevel: inventorypb.LogLevel(inventorypb.LogLevel_value[pointer.GetString(agent.LogLevel)]), |
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 🐶
LogLevel_value contains underscore. You should use mixedCap or MixedCap. (nosnakecase)
@@ -457,3 +465,11 @@ func ToAPIAgent(q *reform.Querier, agent *models.Agent) (inventorypb.Agent, erro | |||
panic(fmt.Errorf("unhandled Agent type %s", agent.AgentType)) | |||
} | |||
} | |||
|
|||
func SpecifyLogLevel(variant inventorypb.LogLevel) string { | |||
if variant == inventorypb.LogLevel_auto { |
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 🐶
LogLevel_auto contains underscore. You should use mixedCap or MixedCap. (nosnakecase)
PMM-9968
Build: SUBMODULES-2595
SUBMODULES-2536PMM-9968 pmm-admin inventory add agent * --log-level pmm-managed#1134PMM-9968 pmm-admin inventory add agent * --log-level pmm-admin#224