diff --git a/packages/google-cloud-monitoring/samples/snippets/v3/cloud-client/snippets.py b/packages/google-cloud-monitoring/samples/snippets/v3/cloud-client/snippets.py index 9b47e5da7803..41ced1c643ba 100644 --- a/packages/google-cloud-monitoring/samples/snippets/v3/cloud-client/snippets.py +++ b/packages/google-cloud-monitoring/samples/snippets/v3/cloud-client/snippets.py @@ -67,6 +67,7 @@ def write_time_series(project_id): series.resource.type = "gce_instance" series.resource.labels["instance_id"] = "1234567890123456789" series.resource.labels["zone"] = "us-central1-f" + series.metric.labels["TestLabel"] = "My Label Data" now = time.time() seconds = int(now) nanos = int((now - seconds) * 10 ** 9)