View a markdown version of this page

使用指标目标 - Amazon EMR

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

使用指标目标

在 EMR 7.1 中,您可以选择将指标数据发送到亚马逊或 CloudWatch 亚马逊 Prometheus 托管服务。此选择允许您根据需要与不同的监控工具无缝集成。

向 Amazon 发送指标 CloudWatch

要将指标发送到 CloudWatch,请使用以下配置:

[ { "Classification": "emr-metrics", "Properties": { "metrics_destination": "cloudwatch" }, "Configurations": [] } ]

将指标发送到 Amazon Managed Service for Prometheus

如果您更喜欢使用 Prometheus,请设置目标并提供端点 URL:

[ { "Classification": "emr-metrics", "Properties": { "metrics_destination": "prometheus", "prometheus_endpoint": "https://aps-workspaces.region.amazonaws.com/workspaces/workspace_id/api/v1/remote_write" }, "Configurations": [] } ]

region替换为你所在的 AWS 地区和workspace_id你的 Prometheus 工作空间 ID。此配置使用指定的端点将您的 HBase 指标定向到 Prometheus。

通过上述设置,您可以在监控选项卡下查看以下指标。