-
Notifications
You must be signed in to change notification settings - Fork 138
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-11341 Auto discovery limit. #2568
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #2568 +/- ##
==========================================
+ Coverage 42.75% 42.77% +0.01%
==========================================
Files 391 391
Lines 49168 49241 +73
==========================================
+ Hits 21020 21061 +41
- Misses 26170 26199 +29
- Partials 1978 1981 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
c010c78
to
55d5655
Compare
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.
Overall looks good to me.
Just few comments to improve it
// PostgreSQLExtendedOptionsParams contains extended parameters for PostgreSQL exporter. | ||
type PostgreSQLExtendedOptionsParams interface { | ||
GetAutoDiscoveryLimit() int32 | ||
} |
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.
let's include it to PostgreSQLOptionsParams
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.
Included. Originally I separated it since we dont need such field for QAN agents.
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.
ah, let's revert it then, keep it separated.
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.
btw why do we pass service parameters to agent in inventory API?
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.
@BupycHuk Reverted. It is passed to have limit exposed in inventory UI. It is aligned with MySQL implementation.
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.
got it, let's create task for V3 to standardize it
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.
@@ -94,7 +94,7 @@ type AddAgentMysqldExporterCommand struct { | |||
TLSCAFile string `name:"tls-ca" help:"Path to certificate authority certificate file"` | |||
TLSCertFile string `name:"tls-cert" help:"Path to client certificate file"` | |||
TLSKeyFile string `name:"tls-key" help:"Path to client key file"` | |||
TablestatsGroupTableLimit int32 `placeholder:"number" help:"Tablestats group collectors will be disabled if there are more than that number of tables (default: 0 - always enabled; negative value - always disabled)"` | |||
TablestatsGroupTableLimit int32 `placeholder:"number" help:"Tablestats group collectors will be disabled if there are more than that number of tables (default: server-defined)"` |
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.
wow, what about negative value? was it disabling or not?
@@ -27,6 +27,10 @@ import ( | |||
"github.com/percona/pmm/managed/services" | |||
) | |||
|
|||
const ( | |||
defaultAutoDiscoveryDatabaseLimit = 1000 |
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.
let's have it low like 10 or 15
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.
@BupycHuk Should Matěj change this also on FE? Default 1000 is also there (like in case of MySQL).
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.
Yes
10affb2
to
c045ca7
Compare
PMM-11341
Link to the Feature Build:
Percona-Lab/pmm-submodules#3424
PostgreSQL exporter PR: percona/postgres_exporter#162