Commit 1090e0ae by Erik Sundell

remove on metric type change

parent de9ace73
......@@ -60,7 +60,9 @@ export class StackdriverFilterCtrl {
handleMetricTypeChange(value) {
this.target.metricType = value;
this.onMetricTypeChange();
this.setMetricType();
this.$scope.refresh();
this.getLabels();
}
initSegments(hideGroupBys: boolean) {
......@@ -191,12 +193,6 @@ export class StackdriverFilterCtrl {
}
}
async onMetricTypeChange() {
this.setMetricType();
this.$scope.refresh();
this.getLabels();
}
setMetricType() {
const { valueType, metricKind, unit } = this.metricDescriptors.find(
m => m.type === this.templateSrv.replace(this.target.metricType)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment