Enabling CloudWatch query metrics - Amazon Athena
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Enabling CloudWatch query metrics

When you create a workgroup in the console, the setting for publishing query metrics to CloudWatch is selected by default.

To enable or disable query metrics in the Athena console for a workgroup
  1. Open the Athena console at https://console.amazonaws.cn/athena/.

  2. If the console navigation pane is not visible, choose the expansion menu on the left.

    Choose the expansion menu.
  3. In the navigation pane, choose Workgroups.

  4. Choose the link of the workgroup that you want to modify.

  5. On the details page for the workgroup, choose Edit.

  6. In the Settings section, select or clear Publish query metrics to Amazon CloudWatch.

If you use API operations, the command line interface, or the client application with the JDBC driver to create workgroups, to enable publishing of query metrics, set PublishCloudWatchMetricsEnabled to true in WorkGroupConfiguration. The following example shows only the metrics configuration and omits other configuration:

"WorkGroupConfiguration": { "PublishCloudWatchMetricsEnabled": "true" .... }