Skip to content

Commit f0b511d

Browse files
committed
Merge pull request #84 from GoogleCloudPlatform/fixtype
Fix metric filter call
2 parents ba4914c + b57be14 commit f0b511d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

monitoring/list_resources.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ function listMetricDescriptors(authClient, projectId, callback) {
9393
var monitoring = google.monitoring('v3');
9494
monitoring.projects.metricDescriptors.list({
9595
auth: authClient,
96-
filter: 'metric.name="' + METRIC + '"',
96+
filter: 'metric.type="' + METRIC + '"',
9797
name: projectId
9898
}, function (error, metricDescriptors) {
9999
if (error) {

0 commit comments

Comments
 (0)