From 1a065b58ce8bee00d2b7e1f78d95363c78fa5090 Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Mon, 1 Aug 2022 10:41:35 -0400 Subject: [PATCH] CloudWatch: the variable editor should accept custom values (#52955) (#53045) (cherry picked from commit 74f0c3dbd4d343a8fe294442b7fb3f910b37ea90) Co-authored-by: Isabella Siu --- .../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 />