Interview Prep/Monitoring & Observability/Grafana dashboards and data sources

Grafana CloudWatch data source returns `AccessDenied: ... not authorized to perform: cloudwatch:GetMetricData`

IntermediateTroubleshootingGrafana dashboards and data sources
Answer

Likely causes → The IAM role used by Grafana (IRSA, instance profile or keys) lacks permissions.

Diagnose → aws sts get-caller-identity from the Grafana pod; check the role policy.

Fix → Grant cloudwatch:GetMetricData, cloudwatch:ListMetrics, cloudwatch:DescribeAlarms, logs:StartQuery, logs:GetQueryResults, ec2:DescribeRegions, tag:GetResources.

Prevent → Use the AWS-documented Grafana policy as a managed policy.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Grafana dashboards and data sources