浏览代码

stackdriver: return correct value

Erik Sundell 7 年之前
父节点
当前提交
40bb3551cf
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      public/app/plugins/datasource/stackdriver/StackdriverMetricFindQuery.ts

+ 1 - 1
public/app/plugins/datasource/stackdriver/StackdriverMetricFindQuery.ts

@@ -56,7 +56,7 @@ export default class StackdriverMetricFindQuery {
     const metricDescriptors = await this.datasource.getMetricTypes(this.datasource.projectName);
     return getMetricTypesByService(metricDescriptors, selectedService).map(s => ({
       text: s.displayName,
-      value: s.name,
+      value: s.type,
       expandable: true,
     }));
   }