AWS awshealth 度量集
编辑AWS awshealth 度量集
编辑此功能处于测试阶段,可能随时更改。其设计和代码不如正式 GA 功能成熟,按“原样”提供,不附带任何担保。测试版功能不受正式 GA 功能的支持服务等级协议 (SLA) 约束。
AWS Health 度量指标通过监控各种方面(例如开放的问题、计划的维护事件、安全建议、合规性状态、通知计数和服务中断)来提供有关 AWS 环境健康状况的洞察。这些指标可帮助您主动识别和解决影响 AWS 资源的问题,从而确保基础设施的可靠性、安全性及合规性。
AWS 权限
编辑要使用 Elastic Metricbeat 收集 AWS Health 度量指标,您需要特定的 AWS 权限才能访问必要的数据。以下是 IAM 用户收集 AWS Health 度量指标所需的权限列表。
health:DescribeAffectedEntities health:DescribeEventDetails health:DescribeEvents
配置示例
编辑- module: aws period: 24h metricsets: - awshealth
这是一个默认的度量集。如果主机模块未配置,则默认启用此度量集。
有关度量集中每个字段的说明,请参阅导出字段部分。
以下是此度量集生成的文档示例。
{ "@timestamp": "2017-10-12T08:05:34.853Z", "aws": { "awshealth": { "affected_entities": [ { "aws_account_id": "12301234013123", "entity_url": "", "entity_value": "arn:aws:eks:us-east-2:627286350134:cluster/XXXXXXXXXXXXX", "last_updated_time": "2024-04-12T12:56:29.7Z", "status_code": "PENDING", "entity_arn": "arn:aws:health:us-east-2:627286350134:entity/YYYYYYYYYYYYYYYYYYYY" } ], "affected_entities_others": 0, "affected_entities_pending": 1, "affected_entities_resolved": 0, "end_time": "0001-01-01T00:00:00Z", "event_arn": "arn:aws:health:us-east-2::event/EKS/AWS_EKS_PLANNED_LIFECYCLE_EVENT/AWS_EKS_PLANNED_LIFECYCLE_EVENT_a7e64e77680080d19971a80f0131ff2239909cdbe7647dd57710b764b988f476", "event_description": "On May 1, 2024, standard support for Kubernetes version 1.25 in Amazon EKS will end. From May 2, 2024 all Amazon EKS clusters running on 1.25 will enter extended support and will remain in extended support until May 1, 2025.\n\nAfter May 1, 2025, Kubernetes 1.25 will no longer be supported on Amazon EKS, and all Amazon EKS clusters running on 1.25 will be automatically updated to Kubernetes version 1.26.\n\nYou are receiving this message because you currently have 1 or more Amazon EKS clusters running on Kubernetes version 1.25. A list of your impacted clusters can be found in the \"Affected resources\" tab.\n\nExtended support is currently in free preview and is available to all customers. Effective April 1 2024, your Amazon EKS clusters running on a Kubernetes version in extended support will be charged at $0.60 per cluster hour.\n\nIf you do not want to use extended support, we recommend that you update your 1.25 clusters to Kubernetes version 1.26 or newer before May 1, 2024. To learn more about the extended support for Kubernetes versions pricing, see our announcement [1]. For instructions on how to update your cluster(s), see the Amazon EKS service 'Updating an Amazon EKS cluster Kubernetes version' documentation [2].\n\nTo learn more on Kubernetes version support, see the 'Amazon EKS Kubernetes versions' documentation [3].\n\nFor any questions or assistance, please contact AWS Support [4].\n\n\n[1] https://aws.amazon.com/blogs/containers/amazon-eks-extended-support-for-kubernetes-versions-pricing/\n[2] https://docs.aws.amazon.com/eks/latest/userguide/update-cluster.html\n[3] https://docs.aws.amazon.com/eks/latest/userguide/kubernetes-versions.html\n[4] https://aws.amazon.com/support", "event_scope_code": "ACCOUNT_SPECIFIC", "event_type_category": "scheduledChange", "event_type_code": "AWS_EKS_PLANNED_LIFECYCLE_EVENT", "last_updated_time": "2024-04-12T13:12:39.273Z", "region": "us-east-2", "service": "EKS", "start_time": "2024-05-01T07:00:00Z", "status_code": "upcoming" } }, "cloud.provider": "aws", "event": { "dataset": "aws.awshealth", "duration": 115000, "module": "aws" }, "metricset": { "name": "awshealth", "period": 10000 }, "service": { "type": "aws-health" } }