Browse Source

value as a separate tab

merge-requests/8/merge
vargburz 3 years ago
parent
commit
b0584eeff4
  1. 2
      src/models/series.ts
  2. 4
      src/module.ts

2
src/models/series.ts

@ -11,7 +11,7 @@ export class Series {
constructor(grafanaSeriesList: any, private gaugeValueOptions: ValueOptions) {
if (_.isEmpty(this.gaugeValueOptions.metricName)) {
throw new Error(`Value: metric is not selected. [See options: Extremum -> Value]`);
throw new Error(`Value: metric is not selected. [See options: Value -> Metric]`);
}
this._selectedSerieName = this.gaugeValueOptions.metricName;

4
src/module.ts

@ -44,9 +44,9 @@ export const plugin = new PanelPlugin<PanelOptions>(Panel).setPanelOptions((buil
})
.addFieldNamePicker({
name: 'Value',
name: 'Metric',
path: 'gauge.value.metricName',
category: ['Extremum'],
category: ['Value'],
showIf: (config) => config.visualizationType === Pod.GAUGE,
})
// TODO: defaults?

Loading…
Cancel
Save