diff --git a/src/models/series.ts b/src/models/series.ts index a2b7b29..3155a82 100644 --- a/src/models/series.ts +++ b/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; diff --git a/src/module.ts b/src/module.ts index 4c0925e..a67da81 100644 --- a/src/module.ts +++ b/src/module.ts @@ -44,9 +44,9 @@ export const plugin = new PanelPlugin(Panel).setPanelOptions((buil }) .addFieldNamePicker({ - name: 'Value', + name: 'Metric', path: 'gauge.value.metricName', - category: ['Extremum'], + category: ['Value'], showIf: (config) => config.visualizationType === Pod.GAUGE, }) // TODO: defaults?