如何查看Google云函数每天或每月的调用次数?

huangapple go评论52阅读模式
英文:

How to see Google cloud functions invocations per day or month?

问题

In Google cloud metrics, I created a metric to monitor how many times a google cloud function is invoked

cloud functions -> functions -> executions

But this shows different values than the very small chart in Firebase -> Invocations/hour

  1. What's the issue here?
  2. How to change the charts' timezone in GCP to show the time in my timezone? The default timezone for the charts listed on Google cloud is fine, but the Metrics chart timezone is different.
英文:

In Google cloud metrics, I created a metric to monitor how many times a google cloud function is invoked

cloud functions -> functions -> executions

如何查看Google云函数每天或每月的调用次数?

But this shows different values than the very small chart in Firebase -> Invocations/hour

如何查看Google云函数每天或每月的调用次数?

  1. What's the issue here?
  2. How to change the charts' timezone in GCP to show the time in my timezone? The default timezone for the charts listed on Google cloud is fine, but the Metrics chart timezone is different.

答案1

得分: 2

我通过尝试多个图表并查看其他默认图表的方式来修复它

所以我们应该使用函数 -> 执行

如何查看Google云函数每天或每月的调用次数?

对齐器和聚合器应该设置为“sum”

如何查看Google云函数每天或每月的调用次数?

图表类型是线状图

至于时区,正如Chanpols在评论中指出的,右上角有一个齿轮图标,您可以在那里更改时区。

英文:

I fixed it by trying multiple charts and seeing how other default charts are done

So we should use functions -> executions

如何查看Google云函数每天或每月的调用次数?

The aligner and the aggregator should be set to "sum"

如何查看Google云函数每天或每月的调用次数?

And the chart type is line chart.

As for the timezone, as Chanpols indicated in the comment, there's a gear icon on the top right where you can change the timezone.

huangapple
  • 本文由 发表于 2023年4月1日 00:57:34
  • 转载请务必保留本文链接:https://go.coder-hub.com/75900974.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定