# AWS EKS metric beat missing cluster information

**URL:** <https://discuss.elastic.co/t/aws-eks-metric-beat-missing-cluster-information/347258>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [November 15, 2023, 9:22pm UTC](https://discuss.elastic.co/t/aws-eks-metric-beat-missing-cluster-information/347258 "2023-11-15T21:22:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Steve\_Foster](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steve_foster/32/125583_2.png) [@Steve\_Foster](https://discuss.elastic.co/u/Steve_Foster)\
**Post date:** [November 15, 2023, 9:22pm UTC](https://discuss.elastic.co/t/aws-eks-metric-beat-missing-cluster-information/347258/1 "2023-11-15T21:22:19Z")

</div>

We have a number of EKS clusters and can see that we are missing some metadata related to the cluster is missing in metrics

The items that we are missing are

- `orchestrator.cluster.id`
- `orchestrator.cluster.name`

these are defined at [https://github.com/elastic/beats/blob/main/libbeat/processors/add\_cloud\_metadata/provider\_aws\_ec2.go#L119-L120](https://github.com/elastic/beats/blob/main/libbeat/processors/add_cloud_metadata/provider_aws_ec2.go#L119-L120)

Replicating the AWS API call in [https://github.com/elastic/beats/blob/main/libbeat/processors/add\_cloud\_metadata/provider\_aws\_ec2.go#L126-L141](https://github.com/elastic/beats/blob/main/libbeat/processors/add_cloud_metadata/provider_aws_ec2.go#L126-L141) via the cli

```auto
[root@ip-10-1-3-14 /]# AWS_PAGER="" aws ec2 describe-tags --filters Name=resource-id,Values=i-1234567890 Name=key,Values=eks:cluster-name
{
    "Tags": []
}

```

the cluster name is missing... but looking at all the tags I can see that AWS have started prefixing them with `aws:`

So updating the filter to match this change

```auto
[root@ip-10-1-3-14 /]# AWS_PAGER="" aws ec2 describe-tags --filters Name=resource-id,Values=i-123456789 Name=key,Values=aws:eks:cluster-name
{
    "Tags": [
        {
            "Key": "aws:eks:cluster-name",
            "ResourceId": "i-123456789",
            "ResourceType": "instance",
            "Value": "main"
        }
    ]
}

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 13, 2023, 11:22pm UTC](https://discuss.elastic.co/t/aws-eks-metric-beat-missing-cluster-information/347258/2 "2023-12-13T23:22:30Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
