diff --git a/public/app/percona/add-instance/components/AddRemoteInstance/FormParts/AdditionalOptions/AdditionalOptions.tsx b/public/app/percona/add-instance/components/AddRemoteInstance/FormParts/AdditionalOptions/AdditionalOptions.tsx index 64ede8c7b5e54..f4e7be9d82425 100644 --- a/public/app/percona/add-instance/components/AddRemoteInstance/FormParts/AdditionalOptions/AdditionalOptions.tsx +++ b/public/app/percona/add-instance/components/AddRemoteInstance/FormParts/AdditionalOptions/AdditionalOptions.tsx @@ -71,7 +71,10 @@ export const PostgreSQLAdditionalOptions: FC = useEffect(() => { setMaxConnSelectedValue(maxConnSelectedOption); - form.change('maxExporterConnections', getMaxConnectionLimitValue(maxConnSelectedOption)); + form.change( + isRDS ? 'maxPostgresqlExporterConnections' : 'maxExporterConnections', + getMaxConnectionLimitValue(maxConnSelectedOption) + ); // eslint-disable-next-line react-hooks/exhaustive-deps }, [maxConnSelectedOption]); @@ -120,8 +123,8 @@ export const PostgreSQLAdditionalOptions: FC = fullWidth />