Conjure CloudWatch metrics in the CLI!

Table Of Contents

Visualizing CloudWatch Metrics in the command line using Node.js!

Intro

awscii allows for the ability to stay in the command line when troubleshooting or the desire to retrive AWS CloudWatch Metrics. This open-source tool displays your accounts CloudWatch metrics in an easy to digest, updatable way!

Capabilities

The following AWS services and related metrics are supported for awscii visualization. This is not a fully inclusive list of all monitored CloudWatch Metrics.

AWS Lambda

  • Invocations
  • Duration
  • Errors
  • Error count and success rate
  • Concurrent executions

Amazon DynamoDB

  • Read Capacity
  • Write Capacity
  • Throttled read events

Amazon API Gateway

  • Count
  • Latency
  • 4XXError, 5XXXError

Requirements

  • Node.JS 12 or later
  • An AWS account
    • IAM permissions, granted via the AWS credentials to execute CloudWatch Metrics
    • Granular policy IAM policy shown below
  {
  "Version": "2012-10-17",
  "Statement":[{
      "Effect":"Allow",
      "Action":["cloudwatch:GetMetricStatistics","cloudwatch:ListMetrics"],
      "Resource":"*",
      "Condition":{
         "Bool":{
            "aws:SecureTransport":"true"
            }
         }
      }
   ]
}

Now, let’s see it in action!

Setup & Installation

demo01

First walkthrough

demo02

Using the Linux watch command paired with awscii

demo03

demo04

Thanks for reading! awscii is available for download on npm!

Share :

Related Posts

AWS Security: a curated list of repositories

AWS Security: a curated list of repositories

AWS Security: a curated list of repositories Overview These lists will curate some of the latest GitHub repositories that assist with deploying to AWS using Terraform.

Read More
Deploying the AWS-ServiceBroker prerequisites using Terraform

Deploying the AWS-ServiceBroker prerequisites using Terraform

aws-servicebroker-tf I was unable to find a Terraform version of the CloudFormation stack that deploys the prerequisites for AWS-ServiceBroker. I’ve since created this in Terraform, along with improving upon some of the initial concepts adapted in the CloudFormation template.

Read More
AWS re:Invent 2020 Andy Jassy Keynote annoucements!

AWS re:Invent 2020 Andy Jassy Keynote annoucements!

AWS re:Invent 2020 - Andy Jassy Keynote Here’s a recap of what was announced in Andy Jassy’s 2020 AWS re:Invent Keynote; a lot of very exciting announcements to unpack here!

Read More