Skip to content

AWS EKS

Collect AWS EKS cluster assets and AWS/EKS control plane monitoring data.

Configuration

Permissions

For AWS cloud collection permissions, see AWS cloud integration role authorization. The read-only permissions required by this integration are listed below.

  • eks:ListClusters: Get cluster list.
  • eks:DescribeCluster: Get EKS cluster details and tags.
  • cloudwatch:ListMetrics: Discover CloudWatch monitoring metrics and dimensions.
  • cloudwatch:GetMetricData: Read in batches: CloudWatch monitoring metric data.

Install Func

We recommend enabling hosted Func under TrueWatch Integrations - Extensions. All prerequisites are installed automatically; continue with the script installation.

To deploy Func yourself, see Deploy Func Yourself

Activate Script

Prepare AWS AK in advance and authorize access as described in Permissions.

Activate the Hosted Script

  1. Log in to the TrueWatch console.
  2. Click 【Integrations】 and select 【Cloud Account Management】.
  3. Click 【Add Cloud Account】, select 【AWS】, and enter the required information. Skip this step if the cloud account has already been configured.
  4. Click 【Test】, then click 【Save】 if the test succeeds. If it fails, check the configuration and test again.
  5. Find the added cloud account in 【Cloud Account Management】 and click it to open its details page.
  6. Click 【Integrations】 on the cloud account details page, find AWS EKS under Not Installed, and click 【Install】. Complete the installation in the dialog.

Activate the Script Manually

  1. Log in to the Func console, click 【Script Market】, open the TrueWatch script market, and search for integration_aws_eks.
  2. Click 【Install】 and enter AWS AK ID, AK Secret, and the account name.
  3. Click 【Deploy Startup Script】. The system automatically creates the Startup script set and configures the startup script.
  4. After activation, find the automatic trigger configuration under 「Management / Automatic Trigger Configuration」. Click 【Execute】 to run it immediately without waiting for the schedule. After a short wait, review the task records and logs.

Verification

  1. Under 「Management / Automatic Trigger Configuration」, confirm that the task has an automatic trigger configured, and check its records and logs for errors.
  2. In TrueWatch, check 「Infrastructure / Custom」 for asset information.
  3. In TrueWatch, check 「Metrics」 for the corresponding monitoring data.

Metrics

The measurement is aws_eks.

MetricName MetricDescribe Dimensions Unit
apiserver_admission_webhook_rejection_count_admit_sum Admission webhook rejection count (admit) cluster_name count
apiserver_admission_webhook_rejection_count_validating_sum Admission webhook rejection count (validating) cluster_name count
apiserver_admission_webhook_request_total_sum Total admission webhook requests cluster_name count
apiserver_admission_webhook_request_total_admit_sum Total admission webhook requests (admit) cluster_name count
apiserver_admission_webhook_request_total_validating_sum Total admission webhook requests (validating) cluster_name count
apiserver_current_inflight_requests_mutating_sum Current concurrent API Server requests (mutating) cluster_name count
apiserver_current_inflight_requests_readonly_sum Current concurrent API Server requests (readonly) cluster_name count
apiserver_flowcontrol_current_executing_seats_sum Currently executing seats in API Priority and Fairness cluster_name count
apiserver_request_duration_seconds_delete_p99_average Native P99 latency for DELETE requests cluster_name s
apiserver_request_duration_seconds_get_p99_average Native P99 latency for GET requests cluster_name s
apiserver_request_duration_seconds_list_p99_average Native P99 latency for LIST requests cluster_name s
apiserver_request_duration_seconds_patch_p99_average Native P99 latency for PATCH requests cluster_name s
apiserver_request_duration_seconds_post_p99_average Native P99 latency for POST requests cluster_name s
apiserver_request_duration_seconds_put_p99_average Native P99 latency for PUT requests cluster_name s
apiserver_request_total_sum API Server request count cluster_name count
apiserver_request_total_429_sum API Server request count (429) cluster_name count
apiserver_request_total_4xx_sum API Server request count (4XX) cluster_name count
apiserver_request_total_5xx_sum API Server request count (5XX) cluster_name count
apiserver_storage_size_bytes_maximum Disk space allocated to etcd cluster_name B
etcd_mvcc_db_total_size_in_use_in_bytes_maximum Actual database size in use by etcd cluster_name B
scheduler_pending_pods_sum Pods pending in the scheduler cluster_name count
scheduler_pending_pods_activeq_sum Pods pending in the scheduler (activeq) cluster_name count
scheduler_pending_pods_backoff_sum Pods pending in the scheduler (backoff) cluster_name count
scheduler_pending_pods_gated_sum Pods pending in the scheduler (gated) cluster_name count
scheduler_pending_pods_unschedulable_sum Pods pending in the scheduler (unschedulable) cluster_name count
scheduler_schedule_attempts_error_sum Scheduling attempt count (error) cluster_name count
scheduler_schedule_attempts_scheduled_sum Scheduling attempt count (scheduled) cluster_name count
scheduler_schedule_attempts_total_sum Scheduling attempt count (total) cluster_name count
scheduler_schedule_attempts_unschedulable_sum Scheduling attempt count (unschedulable) cluster_name count