最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

google cloud platform - How do I fix a custom metric that can't be aggregated by two projects. It says chart definition

programmeradmin0浏览0评论

I'm experimenting with a custom metric. The same metric and labels were being written in different projects at the same time. They should have been identical, but when I view the metric I see this:

If I filter by either project I see the metric. It looks the same so it was being written in two different projects at the same time, maybe at a slightly different interval.

I didn't realize you could break metrics like this. Is there a way to fix this? I don't know what the actual problem is that causes this or how to fix it.

What is happening here?

I'm experimenting with a custom metric. The same metric and labels were being written in different projects at the same time. They should have been identical, but when I view the metric I see this:

If I filter by either project I see the metric. It looks the same so it was being written in two different projects at the same time, maybe at a slightly different interval.

I didn't realize you could break metrics like this. Is there a way to fix this? I don't know what the actual problem is that causes this or how to fix it.

What is happening here?

Share Improve this question asked Feb 5 at 16:46 red888red888 31.6k74 gold badges259 silver badges496 bronze badges 1
  • See configure a metrics scope – DazWilkin Commented Feb 5 at 18:32
Add a comment  | 

1 Answer 1

Reset to default 0

According to this document, “When you use direct filter mode and no data is available that satisfies the filter, an error is shown. Common error messages include Chart definition invalid and No data is available for the selected timeframe.”

Here are my thoughts to fix this:

  1. Verify the labels and resources types match exactly.

  2. If cross-project aggregation isn't necessary, filter by a single project when querying.

  3. Verify that your account has Monitoring Viewer or higher permissions on all relevant projects.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论