Skip to content

AWS Rekognition

Collect AWS Rekognition user error metrics.

Configuration

Install Func

We recommend enabling Hosted Func under Guance Integrations - Extensions. All prerequisites are installed automatically; continue with script installation.

For a self-hosted Func deployment, see Self-host Func.

Activate Script

Note: Prepare an AWS AK that meets the requirements. For simplicity, you can grant the global read-only permission ReadOnlyAccess directly.

Activate the script in Hosted Func

  1. Log in to the Guance console
  2. Click the 【Integration】 menu and select 【Cloud Account Management】
  3. Click 【Add Cloud Account】, select 【AWS】, and fill in the required information on the interface. If you have already configured the cloud account information before, ignore this step
  4. Click 【Test】, and if the test is successful, click 【Save】. If the test fails, please check if the relevant configuration information is correct and test again
  5. Click 【Cloud Account Management】, and you can see the added cloud account in the list. Click the corresponding cloud account to enter the details page
  6. Click [Integrations] on the cloud account details page. Find AWS Rekognition in the Not installed list and click [Install] to open the installation dialog. Select the Rekognition region in use and install.

Activate the script manually

  1. Sign in to the Func console, click [Script Market], open the Guance script market, and search for integration_aws_cloudwatch.
  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 corresponding startup script. Set regions to the Rekognition region in use and replace the entire collector_configs['targets'] with [{'namespace': 'AWS/Rekognition', 'metrics': ['UserErrorCount']}].
  4. after enabling it, open"Management / Automatic Trigger Configuration"to view the automatic trigger configuration.Click[Run],to run it immediately,without waiting for the scheduled interval.wait a moment,you can view execution records and related logs

Verification

  1. Under 「Management / Automatic Trigger Configuration」, confirm that the task is configured and review its records and logs for permission or API errors.
  2. In Guance, open [Metrics] and check the aws_rekognition measurement for the monitoring data.

Metrics

After configuring AWS cloud monitoring, the default metrics are listed below. You can configure additional metrics for collection.AWS Rekognition Metric details

AWS Rekognition metrics are in the aws_rekognition measurement.

MetricName MetricDescribe Dimensions Unit
user_error_count_sum User errors caused by invalid parameters, invalid images, insufficient permissions, or similar issues, with HTTP response codes 400–499 operation, region_id count

Feedback

Is this page helpful?