Skip to content
This repository has been archived by the owner on Dec 31, 2023. It is now read-only.

fix: add metric label example to the quickstart snippet #509

Merged
merged 1 commit into from
Oct 28, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions samples/snippets/v3/cloud-client/quickstart.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ def run_quickstart(project=""):

series = monitoring_v3.TimeSeries()
series.metric.type = "custom.googleapis.com/my_metric"
series.metric.labels["store_id"] = "Pittsburgh"
series.resource.type = "gce_instance"
series.resource.labels["instance_id"] = "1234567890123456789"
series.resource.labels["zone"] = "us-central1-f"
Expand Down