Sending Test Metrics with the Command Line - Lumberyard User Guide

Sending Test Metrics with the Command Line

In addition to using the Metrics Sample level, you can send test metrics to AWS with the command line. Events that are generated with the command line always append to tables with the prefix "dummy_" (for example, "dummy_sessionStart"). This ensures that test events are tagged differently than real world events.

To send test metrics with the command line

  1. Open a command line window and navigate to the lumberyard_version\dev directory.

  2. Enter the following command to send test metrics. This command sends one test metric.

    lmbr_aws metric send-test-metric

    The following output returns for the test metric.

    Sending a sqs message with 283 bytes The job sent 1 metric(s) to the FIFO queue '' The job took 1.76900005341 seconds. StatusCode: 200 Generating CSV test data with 1 events. [None]Using SQS queue URL ''
  3. Enter the following command to send test metrics to simulate three players (threads) and send 500 events for each thread, with a five second delay between each event.

    lmbr_aws metric send-test-metrics --threads 3 --iterations-per-thread 500 --sleep-duration-between-jobs 5
  4. For additional options, enter the following command:

    lmbr_aws metric -h

    You can specify the following command options:

    Command option Description

    Runs the metric FIFO consumer locally.


    Sends example metrics.


    Combines S3 files into a single S3 file to improve the response time for Amazon Athena.

    By default, this command runs in AWS every 20 minutes.


    Displays Amazon CloudWatch metrics.


    Opens a local or remote S3 .parquet type file.


    Queries Amazon Athena.


    Runs an AWS Glue setup command.


    Runs an AWS Glue command.


    Displays dashboard metrics.