diff --git a/public/app/plugins/datasource/cloudwatch/components/ConfigEditor/ConfigEditor.test.tsx b/public/app/plugins/datasource/cloudwatch/components/ConfigEditor/ConfigEditor.test.tsx
index 47cf04e059c..a83e5d70d5d 100644
--- a/public/app/plugins/datasource/cloudwatch/components/ConfigEditor/ConfigEditor.test.tsx
+++ b/public/app/plugins/datasource/cloudwatch/components/ConfigEditor/ConfigEditor.test.tsx
@@ -216,6 +216,11 @@ describe('Render', () => {
await waitFor(async () => expect(screen.getByText('Assume Role ARN')).toBeInTheDocument());
});
+ it('should display namespace field', async () => {
+ setup();
+ await waitFor(async () => expect(screen.getByText('Namespaces of Custom Metrics')).toBeInTheDocument());
+ });
+
it('should show a deprecation warning if `arn` auth type is used', async () => {
setup({
jsonData: {
diff --git a/public/app/plugins/datasource/cloudwatch/components/ConfigEditor/ConfigEditor.tsx b/public/app/plugins/datasource/cloudwatch/components/ConfigEditor/ConfigEditor.tsx
index c9965ee2022..f6b551955da 100644
--- a/public/app/plugins/datasource/cloudwatch/components/ConfigEditor/ConfigEditor.tsx
+++ b/public/app/plugins/datasource/cloudwatch/components/ConfigEditor/ConfigEditor.tsx
@@ -107,7 +107,15 @@ export const ConfigEditor = (props: Props) => {
})
}
externalId={externalId}
- />
+ >
+
+
+
+
{config.secureSocksDSProxyEnabled && (
)}