Sanchit Dilip Jain/Configure AWS Managed Service For Grafana ๐Ÿ“‰

Created Mon, 15 Mar 2021 12:00:00 +0000 Modified Fri, 06 Dec 2024 18:05:09 +0000
400 Words 2 min

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

    1. Go to the AMG console

      image1

    2. Select Create Workspace from the right side of the console

    3. Provide Workspace Name and Description and select Next

      image2

    4. Select Service managed in the Configure Settings page and click Next

      image3

    5. 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

      image4

    6. In the Review screen, verify the selection and select on Create workspace

    image5

  • Step 2. Add User

    1. After the workspace is Active, click on Assign user and select the SSO user available. Click Assign user

      image6

      image7

    2. 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.

      image8

  • Step 3. Query metrics/logs from AWS Cloudwatch

    1. Click the Grafana workspace URL from the workspace we deployed above

    2. Authenticated yourself via AWS SSO

      image9

    3. Click AWS services from the AWS logo on the left navigation bar, which allow you to add Data Source

      image10

    4. Select CloudWatch as the data source from the AWS Data Sources screen

      image11

    5. Select the AWS Region and click on Add data source to add CloudWatch as a data source

      image12

    6. Next click on Go to settings and select the Dashboards tab and verify the connection

      image13

    7. The CloudWatch data source plugin comes with a few dashboards build-in

      image14

    8. Select Import on the dashboards as shown below

      image15

    9. Next we will check the metrics and logs being visualized.

    • EC2

      image16

    • EBS

      image17

    • Lambda

      image18

    • RDS

      image19