Skip to content

A command line tool to display AWS RDS Enhanced Monitoring statistics from CloudWatch in a Linux top-like format.

License

Notifications You must be signed in to change notification settings

sherwind/aws-rds-top

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aws-rds-top

A command line tool that retrieves AWS RDS Enhanced Monitoring statistics from CloudWatch and displays the information in a format similar to the Linux top command.

Status: Alpha

Features

  • Retrieves and displays RDS instance system, network, disk IO, and process statistics.
  • Supports sorting by memory usage or CPU usage.

Prerequisites

  • Go programming language installed (version 1.19 or higher)
  • AWS CLI configured with the appropriate credentials and region
  • RDS Enhanced Monitoring enabled for your RDS instances

Note on Processes and Threads

RDS Enhanced Monitoring displays a maximum of 100 processes and threads, which are a combination of the top CPU consuming and memory consuming processes and threads. If there are more than 50 processes and more than 50 threads, the console displays the top 50 consumers in each category. For more information, refer to the official AWS documentation.

Installation

git clone https://github.com/sherwind/aws-rds-top.git
cd aws-rds-top
go build -o rds-top

Usage

./rds-top [options] <rds-instance-name>
./rds-top --start-time=$(date -v-13d +%s) <rds-instance-name>
./rds-top --sort-by-mem --start-time=$(date -j -f "%Y-%m-%dT%H:%M:%S%z" "2019-09-12T13:05:00+0000" +%s) <rds-instance-name> | grep -v 'idle$'

Options

--start-time=t           Optional: Specify the start time in seconds since the Unix epoch
--sort-by-mem            Optional: Sorts output by memory. Default is to sort by CPU

License

This project is licensed under the MIT License.

Contributing

Please feel free to submit issues, fork the repository, and send pull requests.

About

A command line tool to display AWS RDS Enhanced Monitoring statistics from CloudWatch in a Linux top-like format.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages