選取您的 Cookie 偏好設定

我們使用提供自身網站和服務所需的基本 Cookie 和類似工具。我們使用效能 Cookie 收集匿名統計資料,以便了解客戶如何使用我們的網站並進行改進。基本 Cookie 無法停用,但可以按一下「自訂」或「拒絕」以拒絕效能 Cookie。

如果您同意,AWS 與經核准的第三方也會使用 Cookie 提供實用的網站功能、記住您的偏好設定,並顯示相關內容,包括相關廣告。若要接受或拒絕所有非必要 Cookie,請按一下「接受」或「拒絕」。若要進行更詳細的選擇,請按一下「自訂」。

Using the CloudWatch agent with related telemetry

焦點模式
Using the CloudWatch agent with related telemetry - Amazon CloudWatch
此頁面尚未翻譯為您的語言。 請求翻譯

Metrics and logs that are sent to CloudWatch can include an optional entity to correlate telemetry. Entities are used in the Explore related pane. The CloudWatch agent sends entities with a service name and environment name included.

The agent chooses the service name and environment name from the following data.

Service name

The agent chooses the service name from the following options, in priority order:

  • Application Signals instrumentation – The agent sends the service name used by Application Signals. This can be overwritten by changing the OTEL_SERVICE_NAME environment variable used by supported OpenTelemetry instrumentation libraries.

  • CloudWatch agent configuration – You can configure the agent to use a specific service name. This can be configured at the agent, plugin, metrics, logs, or log file level.

  • Kubernetes workload name – For Kubernetes workloads, the agent sends the name of the workload for the corresponding pod, in the following priority order.

    • Deployment name

    • ReplicaSet name

    • StatefulSet name

    • DaemonSet name

    • CronJob name

    • Job name

    • Pod name

    • Container name

  • Resource tags from instance metadata – For Amazon EC2 workloads, the agent sends the a name from tags, in the following order.

    • service

    • application

    • app

    You must setup instance metadata for the agent to be able to access tags.

  • Default – If no other service name is found, the agent will send the name Unknown.

Environment name

The agent chooses the environment name from the following options, in priority order:

  • Application Signals instrumentation – The agent sends the environment name used by Application Signals. This can be overwritten by setting a deployment.environment environment variable used by supported OpenTelemetry instrumentation libraries. For example, applications may set the environment variable OTEL_RESOURCE_ATTRIBUTES=deployment.environment=MyEnvironment.

  • CloudWatch agent configuration – You can configure the agent to use a specific environment name. This can be configured at the agent, plugin, metrics, logs, or log file level.

  • Cluster name and workspace – For Amazon EKS, eks:cluster-name/Namespace. For native Kubernetes running on Amazon EC2, k8s:cluster-name/Namespace.

  • Resource tags from instance metadata – For Amazon EC2 workloads, the agent can will use the AutoScalingGroup tag.

    You must setup instance metadata for the agent to be able to access tags.

  • By default, Amazon EC2 instances that aren't running Kubernetes will get the environment name ec2:default.

隱私權網站條款Cookie 偏好設定
© 2024, Amazon Web Services, Inc.或其附屬公司。保留所有權利。