[v9.5.x] CloudMonitor: Show template variables by default (#68383)
CloudMonitor: Show template variables by default (#68331)
CloudMonitor: show template variables by default
(cherry picked from commit 9503f22f53)
Co-authored-by: Adam Simpson <adam@adamsimpson.net>
This commit is contained in:
co-authored by
Adam Simpson
parent
dd33560f5e
commit
cf49bbe560
+7
-1
@@ -253,7 +253,13 @@ export function Editor({
|
||||
onChange={onMetricTypeChange}
|
||||
value={[...metrics, ...variableOptionGroup.options].find((s) => s.value === metricType)}
|
||||
loadOptions={debounceFilter}
|
||||
defaultOptions={metrics.slice(0, 100)}
|
||||
defaultOptions={[
|
||||
{
|
||||
label: 'Template Variables',
|
||||
options: variableOptionGroup.options,
|
||||
},
|
||||
...metrics.slice(0, 100),
|
||||
]}
|
||||
placeholder="Select Metric"
|
||||
inputId={`${refId}-select-metric`}
|
||||
disabled={service === ''}
|
||||
|
||||
Reference in New Issue
Block a user