Skip to content

AppRunner scaling logs

0

Hello, I've got an AppRunner instance and I can see in the metrics that at times I've got an instance count of 3 (with a minimum configured at 1). Looking it up online, I should see scaling logs in the events stream in CloudWatch, but there's nothing in there.

I'm looking to measure how much time it takes for an instance to come up. I can see the application logs for the new instances and those are pretty fast, but need to measure how long the infra provisioning takes.

Do I need to enable any settings to get the scaling activity into logs and more importantly the instance state transitions?

asked 2 years ago240 views

1 Answer
0

Hello @Marius O

The console displays a few types of logs in several sections: Event log – Activity in the lifecycle of your App Runner service. The console displays the latest events. Deployment logs – Source repository deployments to your App Runner service. The console displays a separate log stream for each deployment. Application logs – The output of the web application that's deployed to your App Runner service. The console combines the output from all running instances into a single log stream.

A deployment is a type of operation. **Deployment logs **contain the logging output of the build and deployment steps that App Runner performs when you create a service or deploy a new version of your application. Deployment log stream names start with deployment/, and end with the ID of the operation that performs the deployment. This operation is either a CreateService call for the initial application deployment or a StartDeployment call for each further deployment.

Ref: https://docs.aws.amazon.com/apprunner/latest/dg/monitor-cwl.html

If the Answer is helpful, please click Accept Answer & UPVOTE, this can be beneficial to other community members.

answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.