andersan
andersan

Reputation: 125

Is it possible to trace Google Compute Engine API Calls to see their source?

Our Google account has not had a VM in service for at least several months - we may have tested one early in 2020 or sometime in 2019 for a short period. The service was enabled and a week ago started having a lot of API calls:

See traffic graph on the left

Here are more specific graphs that show the actual API calls being executed, and show that they're executed by an anonymous user (i.e. not using the API keys).

Compute Engine Graphs

Why would these be executed all of a sudden, without any activity on our part having triggered them?

This other answer indicates that Google executes API calls to check how much capacity you're using, so is it possible that Google is checking hundreds of times every hour to see what virtual machines are up? Is it normal to have a lot of Compute Engine API requests?

Upvotes: 0

Views: 666

Answers (1)

Jose Luis Delgadillo
Jose Luis Delgadillo

Reputation: 2468

@John is right, These calls are coming from GCP and are mostly for the purpose of checking for what's in the project.

You could check to see where that methods are being called in the metrics overview.

enter image description here

You could then look at the metrics to see what they are.

In Google Cloud, APIs are tracked both for usage and for security reasons (who is accessing what and when), Please check this post for more information.

Upvotes: 5

Related Questions