From 74f0c3dbd4d343a8fe294442b7fb3f910b37ea90 Mon Sep 17 00:00:00 2001 From: Isabella Siu Date: Mon, 1 Aug 2022 10:07:27 -0400 Subject: [PATCH] CloudWatch: the variable editor should accept custom values (#52955) --- .../components/VariableQueryEditor/VariableQueryEditor.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/app/plugins/datasource/cloudwatch/components/VariableQueryEditor/VariableQueryEditor.tsx b/public/app/plugins/datasource/cloudwatch/components/VariableQueryEditor/VariableQueryEditor.tsx index 80330d06fc4..a7b841cc8fe 100644 --- a/public/app/plugins/datasource/cloudwatch/components/VariableQueryEditor/VariableQueryEditor.tsx +++ b/public/app/plugins/datasource/cloudwatch/components/VariableQueryEditor/VariableQueryEditor.tsx @@ -122,6 +122,7 @@ export const VariableQueryEditor = ({ query, datasource, onChange }: Props) => { onChange={(value: string) => onNamespaceChange(value)} label="Namespace" inputId={`variable-query-namespace-${query.refId}`} + allowCustomValue /> )} {parsedQuery.queryType === VariableQueryType.DimensionValues && ( @@ -132,6 +133,7 @@ export const VariableQueryEditor = ({ query, datasource, onChange }: Props) => { onChange={(value: string) => onQueryChange({ ...parsedQuery, metricName: value })} label="Metric" inputId={`variable-query-metric-${query.refId}`} + allowCustomValue /> { onChange={(value: string) => onQueryChange({ ...parsedQuery, dimensionKey: value })} label="Dimension key" inputId={`variable-query-dimension-key-${query.refId}`} + allowCustomValue />