-
Couldn't load subscription status.
- Fork 1.6k
PMM-4145 Add RDS disable metrics checkboxes. #629
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
Conversation
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.
LGTM
Codecov Report
@@ Coverage Diff @@
## PMM-2.0 #629 +/- ##
===========================================
- Coverage 34.08% 34.01% -0.07%
===========================================
Files 39 39
Lines 1018 1020 +2
Branches 139 140 +1
===========================================
Hits 347 347
- Misses 643 645 +2
Partials 28 28
Continue to review full report at Codecov.
|
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.
These fields will be shown for all MySQL Remote services, not only for RDS.
pmm-app/src/pmm-add-instance-app-panel/AddInstance/AddRemoteInstance/AddRemoteInstance.tsx
Show resolved
Hide resolved
| </> | ||
| ); | ||
| case 'MySQL': | ||
| if (remoteInstanceCredentials.isRDS) { |
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.
What do you think about this? @lunaticusgreen
| if (remoteInstanceCredentials.isRDS) { | |
| return ( | |
| <> | |
| <CheckboxField form={form} label={'Use performance schema'} name="qan_mysql_perfschema" /> | |
| <span className="description"></span> | |
| (remoteInstanceCredentials.isRDS ? ( | |
| <CheckboxField form={form} label={'Disable Basic Metrics'} name="disable_basic_metrics" /> | |
| <span className="description"></span> | |
| <CheckboxField form={form} label={'Disable Enhanced Metrics'} name="disable_enhanced_metrics" /> | |
| <span className="description"></span> | |
| ) : (Null)) | |
| </> | |
| ); |
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
There is no such thing as (Null) in js. What dit you mean?
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.
It looks ok, but instead of Null you have to use null
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.
null
|
CI fails hard |
|
I think @lunaticusgreen should know answer |
Well, I can't give you a clear pointer to the absence something. :) Here is a Swagger spec: https://github.com/percona/pmm/blob/PMM-2.0/api/swagger/swagger.json We generate code from it and use that generated code – but not in that PR. Why? |
…MM-4145-rds-disable-metric-collection
https://jira.percona.com/browse/PMM-4145
Ref:
FB: