GCP Stackdriver Logs-Based Metrics for custom payload value

感情迁移 提交于 2019-12-20 03:54:14

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!