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
1 Answer
Reset to default 0According 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:
Verify the labels and resources types match exactly.
If cross-project aggregation isn't necessary, filter by a single project when querying.
Verify that your account has
Monitoring Viewer
or higher permissions on all relevant projects.