Reputation: 392
Is there a way to export Google Compute Engine instances logs into BigQuery which will allow you to query the exported logs to get CPU and RAM usage for a selected period using the instance label?
I reviewed already the Default Logging Agent logs doc which shows what Stackdriver Logging collects but RAM and CPU usage isn't mentioned.
I also found this Viewing Activity Logs and Exporting with the Logs Viewer but none of them are relevant to my need.
Thanks in advance
Upvotes: 0
Views: 1067
Reputation: 59225
Stackdriver has some specific GCP metrics - no need for custom types (those on the "default logging aggent logs" linked in the question):
They include instance/cpu/utilization
and other cpu metrics. I'm not sure why memory is not listed, as it's part of many other services (in the same page) default reporting.
Upvotes: 0