hepzi
hepzi

Reputation: 445

Data are not polled while creating User define metric in stack driver in GCP

While creating the user-define metric via filter the data are not polled. But filter returns the results.

Filter and metric used for creating the metric

enter image description here

enter image description here

How to create the metrics?

Upvotes: 1

Views: 47

Answers (1)

Thierry Falvo
Thierry Falvo

Reputation: 6290

I don't know if it's your case here, (because we can't see the creation timestamp of your metric in the screenshot), but take in account that only new log entries received after creation of metric will populate it.

According to official doc :

The data for logs-based metrics comes from log entries received after the metrics are created. The metrics are not populated with data from log entries that are already in Logging.

Upvotes: 2

Related Questions