基于GCP Stackdriver Logs的指标,用于自定义有效负载值 [英] GCP Stackdriver Logs-Based Metrics for custom payload value
本文介绍了基于GCP Stackdriver Logs的指标,用于自定义有效负载值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
已经使用jsonPayload中的特定值创建了我的过滤器.
Already created my filters with a specific value from the jsonPayload.
我想创建一个度量,以绘制Process_time的值.
I want to create a metric which plots the values of Process_time.
任何人都可以帮忙,如何创建此类指标?
Can anyone please help, how to create such metrics?
推荐答案
单击过滤器框上方的创建指标"按钮,并使用jsonPayload.process_time
作为字段名称
Click on the "CREATE METRIC" button above the filter box and use jsonPayload.process_time
as the Field name
其他属性通常在 https中的说明中进行描述://cloud.google.com/logging/docs/logs-based-metrics/distribution-metrics
这篇关于基于GCP Stackdriver Logs的指标,用于自定义有效负载值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文