Menu
Lumberyard
User Guide (Version 1.15)

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 'https://us-east-2.queue.amazonaws.com/123456789012/CloudGemSamples-project-CloudGemMetric_3DT1ONDKEITTGB9LWCZ2MIOZVS9K3IACD5EM.fifo' The job took 1.76900005341 seconds. StatusCode: 200 Generating CSV test data with 1 events. [None]Using SQS queue URL 'https://us-east-2.queue.amazonaws.com/123456789012/CloudGemSamples-project-CloudGemMetric_3DT1ONDKEITTGB9LWCZ2MIOZVS9K3IACD5EM.fifo'
  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
    consume

    Runs the metric FIFO consumer locally.

    send-test-metrics

    Sends example metrics.

    combine-s3-files

    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.

    graph

    Displays Amazon CloudWatch metrics.

    open

    Opens a local or remote S3 .parquet type file.

    query

    Queries Amazon Athena.

    glue-setup

    Runs an AWS Glue setup command.

    glue-crawler

    Runs an AWS Glue command.

    dashboard

    Displays dashboard metrics.