diff --git a/monitoring/snippets/create_custom_metric.js b/monitoring/snippets/create_custom_metric.js index c0fb3d3683..a2951b74de 100644 --- a/monitoring/snippets/create_custom_metric.js +++ b/monitoring/snippets/create_custom_metric.js @@ -121,7 +121,10 @@ CustomMetrics.prototype.writeTimeSeriesForCustomMetric = resource: { timeSeries: [{ metric: { - type: this.metricType + type: this.metricType, + labels: { + environment: 'production' + } }, resource: { type: 'gce_instance',