Browse Source

stackdriver: return correct value

Erik Sundell 7 years ago
parent
commit
40bb3551cf

+ 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,
     }));
   }