Support composite metrics
It would be helpful to be able to build (for the purposes of graphing and alerting) derived metrics consisting of one or more metrics modified via one or more mathematical functions.
e.g. Given the two existing metrics: "memory used" and "total memory". One should be able to create a composite metric of "memory utilization percent" by dividing memory used by memory total and multiplying by 100.
This is available via alpha APIs today. We’re working on getting the APIs to beta and supporting this via the UI as well.
Jonas Sander commented
Any status info here?
Thanks for the update, @mkoes. I see the 'denominator_filter' in the monitoring api, which seems like it would solve this for alerting (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.alertPolicies#metricthreshold) but I don't see any way to graph these kind of derived metrics. Am I missing something?