通过标签过滤时,云运行计费报告GCP未显示
我已经在Google Cloud Run GCP中的项目中添加了标签,因此我可以查看nvim vy to n embel to to billing Report ( key:env and value:prod ) >)。无论将任何标签应用于云运行,COST表都不会显示服务,即使我没有ENV标签的任何其他云运行服务。
我尝试重新部署了一个月前的服务,但没有任何改变。
有什么想法如何解决?
下图显示了附带的标签和成本表中的问题。
“ alt =”通过标签过滤时的费用表” title =“通过标签过滤时的费用表”>
I've added labels to the projects in Google Cloud Run GCP, so that I can view the cost filtered by env label to the billing report ( key: env and value: prod ). Regardless of applying any label to Cloud Run, Cost Table does not show the service, even if I do not have any other Cloud Run services without the env label.
I tried redeploying the services a month ago, but nothing changed.
Any idea how to resolve?
Below images show attached labels and the problem inside the Cost Table.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据 Google的文档,标签必须应用于
> spec.template.metadata.label
。重点是我的。此关键信息仅在YAML实施下提供。 Terraform选项卡简单地指出:
查看您提出的问题,看起来您已经在服务对象上设置了标签而不是设置标签比修订。起初我也犯了同样的错误!
According to Google's documentation, the label must be applied to
spec.template.metadata.label
.Emphasis mine. This key piece of information is only provided under the YAML implementation. The terraform tab simply states:
Looking at the issue you raised, it looks like you have set the label on the service object rather than the revision. I made the same mistake at first, too!