Rds_exporter “EmptyStaticCreds: static credentials are empty”

rds_exporter config file
instances:

  • region: ap-northeast-2
    instance: aurora-mysql57-test-instance
    aws_role_arn: arn:aws:iam::[accountNumber]:role/my_role
    disable_basic_metrics: false
    disable_enhanced_metrics: false

The above role named “arn:aws:iam::[accountNumber]:role/my_role” is “assumeRole” with PMM Policy

run rds_exporter results

Why do I get the message “EmptyStaticCreds: static credentials are empty”?

2 Likes

Do I need a aws_access_key even though I have a aws_role_arn?

2 Likes

I’ve omitted this error by deleting the field aws_role_arn. In my case, the rds exporter is running in the EKS cluster under the service account that already has assumed the role. So after I deleted the key aws_role_arn, the AWS framework was able to assume the role from the container environment variables.

1 Like