elastic / beats

:tropical_fish: Beats - Lightweight shippers for Elasticsearch & Logstash
https://www.elastic.co/products/beats
Other
112 stars 4.93k forks source link

Upgrade from 8.7.1 -> 8.8.2 No longer getting RDS instances. #36648

Open m-standfuss opened 1 year ago

m-standfuss commented 1 year ago

Community forum post https://discuss.elastic.co/t/lost-aws-module-rds-metricset-metrics-after-upgrade-from-7-17-8-8-2/343388/4

8.8.2 Debug logs 8_8_2_logs.csv

8.7.1 Debug logs image

Configuration

metricbeat.yml

    metricbeat.config.modules:
      path: ${path.config}/modules.d/*.yml
      reload.enabled: true
    processors:
      - add_cloud_metadata:
      - add_kubernetes_metadata:
      - add_fields:
          target: orchestrator.cluster
          fields:
            name: ${CLUSTER}
    cloud.id: ${ELASTIC_CLOUD_ID}
    cloud.auth: ${ELASTIC_CLOUD_AUTH}
    output.elasticsearch:
      hosts: ['${ELASTICSEARCH_HOST:elasticsearch}:${ELASTICSEARCH_PORT:9200}']
      username: ${ELASTICSEARCH_USERNAME}
      password: ${ELASTICSEARCH_PASSWORD}
    setup.dashboards.enabled: false

aws_rds.yml

    module: aws
      period: 60s
      metricsets:
        - rds

Using a k8s service account to auth back into AWS

apiVersion: v1
kind: ServiceAccount
metadata:
  annotations:
    eks.amazonaws.com/role-arn: "arn:aws:iam::729154041854:role/terraform-20220317204940606500000001"
  name: metricbeat
  namespace: kube-system
  labels:
    k8s-app: metricbeat

IAM Permissions tied to that role match the permissions needed in the documentation for the aws module.

We have more configs in our production yaml but I confirmed its an issue with this basic one and just flipping the image version on the deployment back and forth

For confirmed bugs, please report:

botelastic[bot] commented 1 year ago

This issue doesn't have a Team:<team> label.

botelastic[bot] commented 2 months ago

Hi! We just realized that we haven't looked into this issue in a while. We're sorry!

We're labeling this issue as Stale to make it hit our filters and make sure we get back to it as soon as possible. In the meantime, it'd be extremely helpful if you could take a look at it as well and confirm its relevance. A simple comment with a nice emoji will be enough :+1. Thank you for your contribution!