# Cloudwatch integration data source

**URL:** <https://community.grafana.com/t/cloudwatch-integration-data-source/68070>\
**Category:** Configuration\
**Tags:** cloudwatch, plugins\
**Created:** [July 1, 2022, 12:39pm UTC](https://community.grafana.com/t/cloudwatch-integration-data-source/68070 "2022-07-01T12:39:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![guille84](https://avatars.discourse-cdn.com/v4/letter/g/aca169/32.png) [@guille84](https://community.grafana.com/u/guille84)\
**Post date:** [July 1, 2022, 12:39pm UTC](https://community.grafana.com/t/cloudwatch-integration-data-source/68070/1 "2022-07-01T12:39:37Z")

</div>

- 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](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_permissions-to-switch.html)

Thanks for your help,

---

<div class="post-metadata">

**Author:** ![anon70503803](https://avatars.discourse-cdn.com/v4/letter/a/8797f3/32.png) [@anon70503803](https://community.grafana.com/u/anon70503803)\
**Post date:** [July 20, 2022, 5:32am UTC](https://community.grafana.com/t/cloudwatch-integration-data-source/68070/2 "2022-07-20T05:32:21Z")

</div>

welcome to the :grafana: forum, @guille84

try increasing [the verbosity of the Grafana server logs](https://grafana.com/docs/grafana/latest/administration/configuration/#level) to `debug` and note any errors. For printing to console, [set the console logs to `debug`](https://grafana.com/docs/grafana/latest/administration/configuration/#level-1) as well.

---

<div class="post-metadata">

**Author:** ![guille84](https://avatars.discourse-cdn.com/v4/letter/g/aca169/32.png) [@guille84](https://community.grafana.com/u/guille84)\
**Post date:** [July 26, 2022, 10:41am UTC](https://community.grafana.com/t/cloudwatch-integration-data-source/68070/3 "2022-07-26T10:41:55Z")

</div>

Thank you Mattabrams, logs helped to find the issue, was getting a timeout error so the grafana server wasn’t having proper internet connectivity. After resolving this I was able to sort it out.  
Thanks a lot for the advise, logs helped me to find the issue.
