Reputation: 1077
I have created some log based metrics in GCP and confirmed using the Preview Logs
that they are valid (getting green bubbles with numbers in them).
However, when trying to view these in the metrics explorer, they are inactive (I need to toggle "Show only active resources and metrics" for the log based metric to show up) -- and then after toggling it on, sure enough, there is no time series to display.
What could be the problem?
Upvotes: 2
Views: 1337
Reputation: 644
Not sure if you got this sorted, but it's a top result when I was working through this. In my case I was using string values in a distribution type log based metric. So it looks fine in the Preview Logs, and the labels all look fine, but when you send data through you get nothing in metrics explorer. Creating a new counter type metric worked fine.
Upvotes: 1