|
|
|
@ -29,6 +29,25 @@ export const plugin = new PanelPlugin<PanelOptions>(Panel).setPanelOptions((buil
|
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
|
}) |
|
|
|
|
.addNumberInput({ |
|
|
|
|
name: 'Value', |
|
|
|
|
path: 'gauge.value', |
|
|
|
|
category: ['Extremum'], |
|
|
|
|
showIf: (config) => config.visualizationType === Pod.GAUGE && !config.gauge.useMetricForValue, |
|
|
|
|
}) |
|
|
|
|
.addFieldNamePicker({ |
|
|
|
|
name: 'Value', |
|
|
|
|
path: 'gauge.valueMetricName', |
|
|
|
|
category: ['Extremum'], |
|
|
|
|
showIf: (config) => config.visualizationType === Pod.GAUGE && config.gauge.useMetricForValue, |
|
|
|
|
}) |
|
|
|
|
.addBooleanSwitch({ |
|
|
|
|
path: 'gauge.useMetricForValue', |
|
|
|
|
name: 'Use metric', |
|
|
|
|
defaultValue: false, |
|
|
|
|
category: ['Extremum'], |
|
|
|
|
showIf: (config) => config.visualizationType === Pod.GAUGE, |
|
|
|
|
}) |
|
|
|
|
.addNumberInput({ |
|
|
|
|
path: 'gauge.min', |
|
|
|
|
name: 'Min', |
|
|
|
|