{"id":11429,"date":"2024-02-27T16:22:14","date_gmt":"2024-02-27T10:52:14","guid":{"rendered":"https:\/\/www.skynats.com\/?p=11429"},"modified":"2026-03-17T12:10:53","modified_gmt":"2026-03-17T06:40:53","slug":"grafana-integration-with-cloud-watch","status":"publish","type":"post","link":"https:\/\/www.skynats.com\/blog\/grafana-integration-with-cloud-watch\/","title":{"rendered":"Grafana Integration with Cloud Watch"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Integrating <a href=\"https:\/\/www.skynats.com\/blog\/log-monitoring-grafana-loki-installation\/\">Grafana<\/a> with Amazon CloudWatch enables you to effortlessly monitor your AWS resources and metrics in real time.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"512\" sizes=\"(max-width: 1024px) 100vw, 1024px\" src=\"https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2024\/02\/grafana-logo-1-1024x512.png\" alt=\"Grafana integration with cloud watch\" class=\"wp-image-11442\" style=\"width:275px;height:auto\" srcset=\"https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2024\/02\/grafana-logo-1-1024x512.png 1024w, https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2024\/02\/grafana-logo-1-300x150.png 300w, https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2024\/02\/grafana-logo-1-768x384.png 768w, https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2024\/02\/grafana-logo-1.png 1200w\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Install Grafana<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Install Grafana on your server.You could follow our documentation  here.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Then, access the Grafana web interface after installation. Grafana comes with builtin support for CloudWatch.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Configure the data source<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1. Select Connections from the left-side menu.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2. Navigate to Your connections and select Data sources.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">3. Type CloudWatch into the search bar.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">4. Click Cloud Watch.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Configure AWS authentication<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Grafana plugin initiates requests to <a href=\"https:\/\/www.skynats.com\/aws-management\/\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-secondary-color\">AWS<\/mark><\/a> on behalf of an AWS Identity and Access Management (IAM) role or IAM user. To conduct particular API actions, the IAM user or role must have the associated policies.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To read Cloud Watch metrics and EC2 tags, instances, regions, and alerts, you must provide Grafana IAM access. You can assign these permissions to the IAM role\/ IAM user that you defined in AWS authentication.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"Version\": \"2012-10-17\",\n  \"Statement\": &#91;\n\t{\n  \t\"Sid\": \"AllowReadingMetricsFromCloudWatch\",\n  \t\"Effect\": \"Allow\",\n  \t\"Action\": &#91;\n    \t\"cloudwatch:DescribeAlarmsForMetric\",\n    \t\"cloudwatch:DescribeAlarmHistory\",\n    \t\"cloudwatch:DescribeAlarms\",\n    \t\"cloudwatch:ListMetrics\",\n    \t\"cloudwatch:GetMetricData\",\n    \t\"cloudwatch:GetInsightRuleReport\"\n  \t],\n  \t\"Resource\": \"*\"\n\t},\n\t{\n  \t\"Sid\": \"AllowReadingLogsFromCloudWatch\",\n  \t\"Effect\": \"Allow\",\n  \t\"Action\": &#91;\n    \t\"logs:DescribeLogGroups\",\n    \t\"logs:GetLogGroupFields\",\n    \t\"logs:StartQuery\",\n    \t\"logs:StopQuery\",\n    \t\"logs:GetQueryResults\",\n    \t\"logs:GetLogEvents\"\n  \t],\n  \t\"Resource\": \"*\"\n\t},\n\t{\n  \t\"Sid\": \"AllowReadingTagsInstancesRegionsFromEC2\",\n  \t\"Effect\": \"Allow\",\n  \t\"Action\": &#91;\"ec2:DescribeTags\", \"ec2:DescribeInstances\", \"ec2:DescribeRegions\"],\n  \t\"Resource\": \"*\"\n\t},\n\t{\n  \t\"Sid\": \"AllowReadingResourcesForTags\",\n  \t\"Effect\": \"Allow\",\n  \t\"Action\": \"tag:GetResources\",\n  \t\"Resource\": \"*\"\n\t}\n  ]\n}\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Set up matrics<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After setting the data source, you can begin querying metrics from Cloud Watch. You can use the built-in query editor or construct your own queries using Cloud Watch syntax.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Create dashboard<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Afterward configuring the data source and querying metrics, you can use <a href=\"https:\/\/grafana.com\/\" target=\"_blank\" rel=\"noopener\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-secondary-color\">Grafana<\/mark><\/a> to construct dashboards that visualize your Cloud Watch metrics.You may monitor your AWS resources by adding graphs, charts, and other visualization components.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Monitor and analyze<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Grafana integrated with Cloud Watch allows you to monitor your AWS resources, analyse performance trends, and take proactive actions to improve your infrastructure.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Our\u00a0Technical Team\u00a0will be available to assist you with Grafana integration with Cloud Watch that can make your job a lot easier. Get in Touch with\u00a0<a href=\"https:\/\/www.skynats.com\/server-management\">Skynats<\/a>\u00a0if you have any queries.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Integrating Grafana with Amazon CloudWatch enables you to effortlessly monitor your AWS resources and metrics in real time. Install Grafana Install Grafana on your server.You could follow our documentation here. Then, access the Grafana web interface after installation. Grafana comes with builtin support for CloudWatch. Configure the data source 1. Select Connections from the left-side [&hellip;]<\/p>\n","protected":false},"author":12,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[771,332,142,5,68],"tags":[722,25,72],"class_list":["post-11429","post","type-post","status-publish","format-standard","hentry","category-aws","category-amazon-web-services","category-aws-management","category-blog","category-server-management","tag-aws","tag-cloud-management","tag-server-management"],"_links":{"self":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/11429","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/comments?post=11429"}],"version-history":[{"count":2,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/11429\/revisions"}],"predecessor-version":[{"id":17491,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/11429\/revisions\/17491"}],"wp:attachment":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/media?parent=11429"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/categories?post=11429"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/tags?post=11429"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}