- python3
- curl
- gcloud
echo <filter> | bash cloud-monitoring-api-list-time-series.sh <gcp project id> <start utc without tz> <end utc without tz>
$ echo 'metric.type="spanner.googleapis.com/instance/cpu/utilization_by_priority" resource.type="spanner_instance" resource.label."instance_id"="your instance id" metric.label."priority"="high"' | bash cloud-monitoring-api-list-time-series.sh <your gcp project> 2022-04-01T00:00:00 2022-04-02T00:00:00