AWS CloudWatch

Exporting metrics to AWS CloudWatch

You can use the metrics for monitoring and to drive auto-scaling through alerts.

Caution: Exporting custom metrics may incur significant Monitoring costs. Please review Amazon’s CloudWatch pricing. By default no metrics are exported; change that using --enable_cloudwatch and --cloudwatch_metrics_filter .

Configuration

  1. Make sure the IAM account has these permissions:

    "Action": [
        "cloudwatch:PutMetricData"
    ],
    
  2. Update the service configuration.

    For example:

    --enable_cloudwatch=true
    --cloudwatch_region=eu-central-1
    --cloudwatch_namespace=Engflow
    --cloudwatch_metrics_filter=used_executors
    

    See the --cloudwatch_* flags for details.

  3. Update the cluster.

    terraform apply
    

Reducing costs

With --cloudwatch_metrics_filter you can select exactly which metrics are exported. (By default no metric is exported.) Reporting more metrics may increase your monitoring bill; consult the AWS CloudWatch pricing page.

2021-09-21