Cloudwatch does not provide metrics on how many workers you are running in a MWAA Environment.
Fortunately we can get this information from Cloudwatch Insights using the MWAA_ENVIRONMENT_NAME-Worker
log group.
Every log stream has the ip address of the worker in the @logStream
field
- Open the relevant
MWAA_ENVIRONMENT_NAME-Worker
log group - Open in CloudWatch Insights and paste and run the following query for your desired time range.
- you can then add the visualization to your desired Cloudwatch dashboard
fields @timestamp
| parse @logStream "*.*.*.*.*" as
workerIpAddress,
workerService,
workerLogCreationTimestampSeconds,
workerLogCreationTimestampMicroSeconds,
WorkerLogFileExtension
| stats count_distinct(workerIpAddress) as workerCount by bin(1h)