AWS Managed Service For Grafana
Introduction
- Amazon Managed Service for Grafana (AMG) is a completely managed service that allows defining query, relations, and depicts trends, logs, and traces for the applications from various sources like Amazon CloudWatch, Amazon Elasticsearch Service, Amazon Timestream, AWS IoT SiteWise, AWS X-Ray, and Amazon Managed Service for Prometheus (AMP) and provides plug-ins to popular open-source databases, third-party ISV monitoring tools, as well as other cloud services.
- It also provides features like single sign-on, fine-grained data access control, and audit reporting out of the box
- This tutorial is divided into below sections
- Create Workspace
- Add User
- Query metrics/logs from AWS Cloudwatch
Tutorial
Step 1. Create Workspace
Prerequisite - AMG requires AWS SSO enabled in your account. AWS SSO is used as the authentication provider to sign into the AMG workspace. Please follow this tutorial to enable AWS SSO
Go to the AMG console
Select Create Workspace from the right side of the console
Provide Workspace Name and Description and select Next
Select Service managed in the Configure Settings page and click Next
In this section, you can choose to deploy Grafana to track resources in the current account or across multiple AWS accounts by selecting the Organization option and click Next
In the Review screen, verify the selection and select on Create workspace
Step 2. Add User
After the workspace is Active, click on Assign user and select the SSO user available. Click Assign user
By default, all newly assigned users are added as Viewers that only provide read-only permissions on Grafana. To make the user as Administrator, select the user under Users and select Make admin. Now you should see that the user is an Administrator.
Step 3. Query metrics/logs from AWS Cloudwatch
Click the Grafana workspace URL from the workspace we deployed above
Authenticated yourself via AWS SSO
Click AWS services from the AWS logo on the left navigation bar, which allow you to add Data Source
Select CloudWatch as the data source from the AWS Data Sources screen
Select the AWS Region and click on Add data source to add CloudWatch as a data source
Next click on Go to settings and select the Dashboards tab and verify the connection
The CloudWatch data source plugin comes with a few dashboards build-in
Select Import on the dashboards as shown below
Next we will check the metrics and logs being visualized.
EC2
EBS
Lambda
RDS