可以在 Stackdriver 中显示 Firebase 调用的函数
Could Functions for Firebase invocations displayed in Stackdriver
我在 Blaze 计划中将 Firebase 与 Cloud Functions 结合使用,我想大致了解每月 200 万次免费调用中我使用了多少次。在那之后(虽然这是另一个故事)我想对 Firebase 计费的其他价格点做同样的概述,例如 GB 秒、CPU 秒和网络出站使用。我在 firebase 控制台中看不到这些指标,所以我的方法是使用 Google Cloud Console 和 Stackdriver。
Firebase 中的函数调用
Stackdriver 中的函数执行
从两张图上可以看出,它们显然具有相同的形状,但比例尺不同。 Firebase 图似乎比 Stackdriver 图大 3-4 倍。
问题:
- 怎么两个图不匹配?
- 我要为哪一个付费?
以下是我配置 Stackdriver 图表的方式:
所以我按照 Doug 的建议询问了 Firebase 支持团队。
这是他们的回复:
I just got an update from our engineers.
They're hinting that the difference might come from the aligner being
count and not sum, which is what the Firebase Console uses. With this,
could you try changing it and see if the values change?
Additionally, the console is pulling the data from Stackdriver, so the
source of the data should be the same. You should also be billed based
on the Stackdriver values. If there's still a discrepancy, please let
me know and provide the updated screenshots so I can investigate
further.
之后我将对齐器更改为 sum
而不是 count
,这导致图表的比例与 Firebase 图表大致相同。
所以回答我自己的问题:
How come the two graph doesn't match each other?
应该的! Stackdriver 图表中的对齐器必须设置为 sum
以反映 Firebase 图表。
Which one am I being billed for?
两者都有! Firebase 中的数据源自 Stackdriver,因此图表应该匹配。如果他们不这样做,则可能是 Stackdriver 图表设置存在问题,Firebase 必须是真实值。
我在 Blaze 计划中将 Firebase 与 Cloud Functions 结合使用,我想大致了解每月 200 万次免费调用中我使用了多少次。在那之后(虽然这是另一个故事)我想对 Firebase 计费的其他价格点做同样的概述,例如 GB 秒、CPU 秒和网络出站使用。我在 firebase 控制台中看不到这些指标,所以我的方法是使用 Google Cloud Console 和 Stackdriver。
Firebase 中的函数调用
Stackdriver 中的函数执行
从两张图上可以看出,它们显然具有相同的形状,但比例尺不同。 Firebase 图似乎比 Stackdriver 图大 3-4 倍。
问题:
- 怎么两个图不匹配?
- 我要为哪一个付费?
以下是我配置 Stackdriver 图表的方式:
所以我按照 Doug 的建议询问了 Firebase 支持团队。
这是他们的回复:
I just got an update from our engineers.
They're hinting that the difference might come from the aligner being count and not sum, which is what the Firebase Console uses. With this, could you try changing it and see if the values change?
Additionally, the console is pulling the data from Stackdriver, so the source of the data should be the same. You should also be billed based on the Stackdriver values. If there's still a discrepancy, please let me know and provide the updated screenshots so I can investigate further.
之后我将对齐器更改为 sum
而不是 count
,这导致图表的比例与 Firebase 图表大致相同。
所以回答我自己的问题:
How come the two graph doesn't match each other?
应该的! Stackdriver 图表中的对齐器必须设置为 sum
以反映 Firebase 图表。
Which one am I being billed for?
两者都有! Firebase 中的数据源自 Stackdriver,因此图表应该匹配。如果他们不这样做,则可能是 Stackdriver 图表设置存在问题,Firebase 必须是真实值。