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-9968 pmm-admin inventory add agent * --log-level #903

Merged
merged 22 commits into from
Jul 20, 2022

Conversation

MySQL, MongoDB, Postgres, ProxySQL

QANMySQLPerfSchema, QANMySQLSlowlog, QANMongoDBProfiler, QANPostgreSQLPgStatements, QANPostgreSQLPgStatMonitor

RDS, AzureDatabase
@YaroslavPodorvanov
Copy link
Contributor Author

YaroslavPodorvanov commented May 26, 2022

pmm-admin inventory add agent * pmm-admin exists pmm-admin log-level added pmm-managed exists ui exists
external ✔️ ❌️ ?
mongodb-exporter ✔️ ✔️ ?
mysqld-exporter ✔️ ✔️ ?
node-exporter ✔️ ✔️ ?
pmm-agent ✔️ ❌️ ?
postgres-exporter ✔️ ✔️ ?
proxysql-exporter ✔️ ✔️ ?
qan-mongodb-profiler-agent ✔️ ✔️ ?
qan-mysql-perfschema-agent ✔️ ✔️ ?
qan-mysql-slowlog-agent ✔️ ✔️ ?
qan-postgresql-pgstatements-agent ✔️ ✔️ ?
qan-postgresql-pgstatmonitor-agent ✔️ ✔️ ?
rds-exporter ✔️ ✔️ ?
azure-database-exporter ❌️ ❌️ ?

Command ./bin/pmm-admin inventory add agent azure-database-exporter not exists, but exists rds-exporter and also exists in pmm-managed AgentsService::AddAzureDatabaseExporter

tshcherban
tshcherban previously approved these changes Jun 2, 2022
BupycHuk
BupycHuk previously approved these changes Jun 2, 2022
tshcherban
tshcherban previously approved these changes Jun 2, 2022
artemgavrilov
artemgavrilov previously approved these changes Jun 6, 2022
Makefile Outdated Show resolved Hide resolved
@YaroslavPodorvanov YaroslavPodorvanov requested a review from a user July 20, 2022 08:07
@@ -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 {
Copy link
Contributor

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)]),
Copy link
Contributor

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 {
Copy link
Contributor

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)

@BupycHuk BupycHuk merged commit fee7475 into main Jul 20, 2022
@BupycHuk BupycHuk deleted the PMM-9968-pmm-admin-inventory-with-log-level branch July 20, 2022 09:03
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.

4 participants