Set up metrics and logging for Amazon GameLift - Amazon GameLift
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Set up metrics and logging for Amazon GameLift

You can use data collected from your Amazon GameLift game servers and resources to help identify anomalies. You can also use metrics to help improve performance.

Key areas to observe for Amazon GameLift include:

  • Amazon GameLift service metrics – Amazon GameLift provides Amazon CloudWatch metrics on your resources including game servers, fleets, queues, and FlexMatch. You can find these metrics in the Amazon GameLift console and the CloudWatch console. For more information about Amazon GameLift metrics in CloudWatch, see Monitor Amazon GameLift with Amazon CloudWatch.

  • Game server metrics – Amazon GameLift can't access your game server metrics. However, you can send custom metrics to CloudWatch directly from your game server by using the CloudWatch agent. You can also use the fleet Amazon Identity and Access Management (IAM) role and the Amazon SDK to send metrics directly to CloudWatch. For an example of how to configure metrics, see Multiplayer Session-based Game Hosting on Amazon on GitHub. This repository includes an example CloudWatch agent configuration and code for a C# StatsD client.

  • Game server logs – To configure your game server log files on the game server, use the Amazon GameLift Server SDK configuration. You can also use Amazon CloudWatch Logs as a real-time log management solution, and you can configure logs with the CloudWatch agent. For more information, see Logging server messages in Amazon GameLift.