-
What Grafana version and what operating system are you using? 8.3
-
What are you trying to achieve? To show cloudwatch metrics in Grafana
-
How are you trying to achieve it? Using the Cloudwatch data source
-
What happened? Once the required details are introduced, Grafana tests the configuration, but stands stuck.
-
What did you expect to happen?
-
Can you copy/paste the configuration(s) that you are having problems with?
Authentication Provider
Access Key ID
Configured
Secret Access Key
Configured
Assume Role ARN: Role ARN added
arn:aws:iam:*
External ID: Added
Endpoint (Not added as says optional)
https://{service}.{region}.amazonaws.com
Default Region
eu-west-2
Namespaces of Custom Metrics
Not added
- Also the role has the Cloudwatch read only policies attached.
One possible reason could be the role policy, not 100% sure if it is correct.
{
“Version”: “2012-10-17”,
“Statement”: [
{
“Effect”: “Allow”,
“Principal”: {
“AWS”: “arn:aws:iam:::root"
},
“Action”: “sts:AssumeRole”,
“Condition”: {
“StringEquals”: {
“sts:ExternalId”: "***”
}
}
}
]
}
- Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
“Metrics request error”, it is the only error got when we press the button test before adding the new data source.
- Did you follow any online instructions? If so, what is the URL?
Granting a user permissions to switch roles - AWS Identity and Access Management
Thanks for your help,