Hello David,
I was unable to find a way for this. You can create a feature request on the Google public Issue Tracker[1] for this feature on our monitoring product team. At this time, I am not able to provide any ETA or guarantee its implementation.
[1] https://cloud.google.com/support/docs/issue-trackers
I found a way for this:
When you define the alert use this setting:
Resource type: VM instance
Metric: CPU utilization
Filter: instance_ID=~firstVMid| secondVMid|thirdVMid
Period: 1 minute
Configuration:
Condition triggers if: All time series violate
Condition: is above
Threshold: 0.9
For: most recent
Don’t forget to use pipe| between instance IDs and use the “All time series violate”
MQL:
fetch gce_instance
| metric 'compute.googleapis.com/instance/cpu/utilization'
| filter
(resource.instance_id
=~ 'ID1|ID2|ID3')
| group_by 1m, [value_utilization_mean: mean(value.utilization)]
| every 1m
| condition val() > 0.9 '10^2.%'
--
© 2018 Google Inc. 1600 Amphitheatre Parkway, Mountain View, CA 94043
Email preferences: You received this email because you signed up for the Google Compute Engine Discussion Google Group (gce-dis...@googlegroups.com) to participate in discussions with other members of the Google Compute Engine community and the Google Compute Engine Team.
---
You received this message because you are subscribed to a topic in the Google Groups "gce-discussion" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gce-discussion/f84qVWyq_sE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gce-discussio...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gce-discussion/328da053-ea32-4d4f-b2f6-1f7f4d030a94n%40googlegroups.com.
--
© 2018 Google Inc. 1600 Amphitheatre Parkway, Mountain View, CA 94043
Email preferences: You received this email because you signed up for the Google Compute Engine Discussion Google Group (gce-dis...@googlegroups.com) to participate in discussions with other members of the Google Compute Engine community and the Google Compute Engine Team.
---
You received this message because you are subscribed to a topic in the Google Groups "gce-discussion" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gce-discussion/f84qVWyq_sE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gce-discussio...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gce-discussion/3f02ae5c-2d96-4eef-ae28-abcb25fd68d6n%40googlegroups.com.
--
© 2018 Google Inc. 1600 Amphitheatre Parkway, Mountain View, CA 94043
Email preferences: You received this email because you signed up for the Google Compute Engine Discussion Google Group (gce-dis...@googlegroups.com) to participate in discussions with other members of the Google Compute Engine community and the Google Compute Engine Team.
---
You received this message because you are subscribed to a topic in the Google Groups "gce-discussion" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gce-discussion/f84qVWyq_sE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gce-discussio...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gce-discussion/43fe63dc-58dc-47b4-bfc0-8692043c9d67n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gce-discussion/8b931b79-fc9e-4bdc-97b6-1ff22fc83e32n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gce-discussion/d51cc3c2-acd4-4207-9a96-e02e94a59f10n%40googlegroups.com.