google-cloud-platformgoogle-cloud-logginggoogle-cloud-monitoringlog-based-metrics

Create Ratio in Cloud Monitoring


I have two user defined log based metrics of type counter, resource type cloud_run_revision, kind delta, value type INT64.

I want to create a widget using the menu driven interface that displays the ratio of the metrics as described in the documentation. After I add the queries to the metric explorer and I click on the create ratio, in the dropdown the queries could not be selected and the error is "You must specify a resource type for the numerator and denominator of a ratio." The group by None and Sum and Alignment function is Count over 1d for both of them.

Is this a common issue or I am missing something here?

Thank you.


Solution

  • I have replicated this issue and i’m able to create the chat ratio metrics perfectly but can you cross check on the below points: