Skip to content
This repository has been archived by the owner on Jun 21, 2022. It is now read-only.

PMM-9968 pmm-admin inventory add agent * --log-level #1134

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

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

@@ -22,6 +22,7 @@ import (

"github.com/AlekSi/pointer"
"github.com/google/uuid"
"github.com/percona/pmm/api/inventorypb"
Copy link
Member

Choose a reason for hiding this comment

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

Package "github.com/percona/pmm-managed/models" should not import package "github.com/percona/pmm/api/inventorypb" (blacklisted by "github.com/percona/pmm/api").

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So i SpecifyLogLevel use inside:

  • "github.com/percona/pmm-managed/services/inventory"
  • "github.com/percona/pmm-managed/services/management"

Both use "github.com/percona/pmm-managed/services"
So i will move "SpecifyLogLevel" to "github.com/percona/pmm-managed/services"

@codecov
Copy link

codecov bot commented Jun 2, 2022

Codecov Report

Merging #1134 (fe0d2f4) into main (c1c142e) will increase coverage by 0.05%.
The diff coverage is 60.71%.

@@            Coverage Diff             @@
##             main    #1134      +/-   ##
==========================================
+ Coverage   48.69%   48.75%   +0.05%     
==========================================
  Files         181      181              
  Lines       21257    21293      +36     
==========================================
+ Hits        10351    10381      +30     
- Misses       9768     9773       +5     
- Partials     1138     1139       +1     
Flag Coverage Δ
all 48.41% <60.71%> (+0.05%) ⬆️
cover 48.87% <56.81%> (+0.04%) ⬆️
crosscover 48.75% <60.71%> (+0.05%) ⬆️
update 12.84% <0.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
models/database.go 49.61% <0.00%> (ø)
services/agents/state.go 0.00% <0.00%> (ø)
services/management/management.go 10.22% <ø> (+0.44%) ⬆️
services/management/mongodb.go 0.00% <0.00%> (ø)
services/management/mysql.go 0.00% <0.00%> (ø)
services/management/postgresql.go 0.00% <0.00%> (ø)
services/management/proxysql.go 0.00% <0.00%> (ø)
services/inventory/agents.go 43.99% <58.33%> (+0.20%) ⬆️
services/converters.go 74.55% <75.00%> (+0.01%) ⬆️
services/agents/rds.go 83.09% <86.66%> (+0.64%) ⬆️
... and 4 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c1c142e...fe0d2f4. Read the comment docs.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants