问题
Already created my filters with a specific value from the jsonPayload.
I want to create a metric which plots the values of Process_time.
Can anyone please help, how to create such metrics?
回答1:
Click on the "CREATE METRIC" button above the filter box and use jsonPayload.process_time
as the Field name
The other attributes are generally described in the instructions on https://cloud.google.com/logging/docs/logs-based-metrics/distribution-metrics
来源:https://stackoverflow.com/questions/56821181/gcp-stackdriver-logs-based-metrics-for-custom-payload-value