Aeron Storm
Aeron Storm

Reputation: 119

Is there a way to find when an instance was spawned and other details in Google App Engine?

With an Instance ID, can the details of the instance can be read from the google console?

Upvotes: 0

Views: 208

Answers (1)

llompalles
llompalles

Reputation: 3166

To see the startTime of an instance in the Google Cloud Console click on the Navigation Menu > App Engine > Instances. Select the service you are interested on and below the graphic there will be displayed a table with the startTime of each instance.

Or you can run the following command:

gcloud app instances describe <INSTANCE_ID> -s=<SERVICE> -v=<VERSION> | grep startTime


EDIT:

In case the instances no longer exists you can use this filter in the Google Cloud Stackdriver Logging Console:

resource.type="gae_app"
resource.labels.module_id="SERVICE"
resource.labels.version_id="VERSION"
protoPayload.instanceId="INSTANCE_ID"

The timestamp of the first entry will roughly coincide with the StartTime of the instance.

Upvotes: 2

Related Questions